Skip to content

Commit 240a5a5

Browse files
authored
Don’t try to install hostname on FreeBSD (#64)
The `hostname` command is part of the base OS; moreover, a package with that name doesn’t exist in ports.
1 parent 22e8f13 commit 240a5a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phreaknet.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ if [ "$PAC_MAN" = "pacman" ]; then
455455
if ! which "hostname" > /dev/null; then
456456
install_package "net-tools"
457457
fi
458-
else
458+
elif [ "$PAC_MAN" != "pkg" ]; then
459+
# `hostname' is part of base on FreeBSD; do not install
459460
ensure_installed "hostname"
460461
fi
461462

0 commit comments

Comments
 (0)