move current detection block after silence enabling

This commit is contained in:
Solene Rapenne 2022-03-13 16:28:00 +01:00
parent 4c71d77d1f
commit af30693a3d
1 changed files with 6 additions and 6 deletions

View File

@ -83,12 +83,6 @@ unknown() {
}
if sysctl kern.version | grep -E -- "(-current|-beta)" >/dev/null
then
silent "Enabling -current mode"
export PKG_PATH="${INSTALLURL}/snapshots/packages/$(machine)/"
fi
if [ "$(id -u)" -ne 0 ]
then
echo "You need to run $0 as root"
@ -100,6 +94,12 @@ then
SILENT=1
fi
if sysctl kern.version | grep -E -- "(-current|-beta)" >/dev/null
then
silent "Enabling -current mode"
export PKG_PATH="${INSTALLURL}/snapshots/packages/$(machine)/"
fi
case "$INSTALLURL" in
http://*) do_http "http://"
;;