abuild-keygen: allow run without any sudo

make it possible to skip the sudo invocation for testing
This commit is contained in:
Natanael Copa 2021-09-27 20:01:32 +02:00
parent f35682d086
commit 62066fa2b9
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
program_version=@VERSION@
sharedir=${ABUILD_SHAREDIR:-@sharedir@}
SUDO="${SUDO:-sudo}"
SUDO="${SUDO-sudo}"
if ! [ -f "$sharedir/functions.sh" ]; then
echo "$sharedir/functions.sh: not found" >&2