mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-07 22:04:03 -05:00
contrib/dependency_setup.sh: added doas support for openbsd (or any other that use it)
This commit is contained in:
@@ -2,7 +2,11 @@
|
||||
set -e
|
||||
|
||||
if [ "$(id -u)" != 0 ]; then
|
||||
SUDO="${SUDO:-$(command -v sudo)}"
|
||||
if command -v sudo; then
|
||||
SUDO="${SUDO:-$(command -v sudo)}"
|
||||
elif command -v doas; then
|
||||
SUDO="${SUDO:-$(command -v doas)}"
|
||||
fi
|
||||
else
|
||||
SUDO="${SUDO:-}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user