diff options
author | 2020-04-12 01:12:38 +0200 | |
---|---|---|
committer | 2020-04-12 01:12:38 +0200 | |
commit | 2948a542da6964a4f61a71fd5253c97f803eac34 (patch) | |
tree | 24c9b7ab52a2223d7d0d5cf8e0673b64935ce93c /gen_determineargs.sh | |
parent | genkernel: bump to v4.0.7 (diff) | |
download | genkernel-2948a542da6964a4f61a71fd5253c97f803eac34.tar.gz genkernel-2948a542da6964a4f61a71fd5253c97f803eac34.tar.bz2 genkernel-2948a542da6964a4f61a71fd5253c97f803eac34.zip |
gen_determineargs.sh: determine_real_args(): Quote $SANDBOX_ON
$SANDBOX_ON can be unset causing 'unary operator expected' error.
Fixes c0e013c ("gen_determineargs.sh: determine_real_args(): Error out early when already running within a sandbox")
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_determineargs.sh')
-rwxr-xr-x | gen_determineargs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gen_determineargs.sh b/gen_determineargs.sh index 95ec402..b1c038d 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -1012,7 +1012,7 @@ determine_real_args() { SANDBOX_COMMAND= if isTrue "${SANDBOX}" then - if [ ${SANDBOX_ON} -eq 1 ] + if [[ "${SANDBOX_ON}" == "1" ]] then gen_die "SANDBOX_ON=1 detected -- You cannot use --sandbox when already running within a sandbox!" fi |