move current detection block after silence enabling
This commit is contained in:
parent
4c71d77d1f
commit
af30693a3d
12
pkgupdate
12
pkgupdate
|
@ -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 ]
|
if [ "$(id -u)" -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "You need to run $0 as root"
|
echo "You need to run $0 as root"
|
||||||
|
@ -100,6 +94,12 @@ then
|
||||||
SILENT=1
|
SILENT=1
|
||||||
fi
|
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
|
case "$INSTALLURL" in
|
||||||
http://*) do_http "http://"
|
http://*) do_http "http://"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue