mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
contrib/dependency_setup.sh: if none of sudo or doas exist, enter error and exit.
This commit is contained in:
@@ -6,7 +6,10 @@ if [ "$(id -u)" != 0 ]; then
|
||||
SUDO="${SUDO:-$(command -v sudo)}"
|
||||
elif command -v doas; then
|
||||
SUDO="${SUDO:-$(command -v doas)}"
|
||||
fi
|
||||
else
|
||||
echo "Please run this script as root!" >&2
|
||||
exit
|
||||
fi
|
||||
else
|
||||
SUDO="${SUDO:-}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user