Skip to content

Commit

Permalink
Run the command instead of reading a non-existing variable
Browse files Browse the repository at this point in the history
Verified with the variable 'isboom' which doesn't exist, it always
returned true. After changing to `if isboom` it would error as that
function does not exist, proving that this is the proper fix as
ischroot does exist.
  • Loading branch information
vmcj committed Nov 24, 2023
1 parent 4a13408 commit a29093b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
# @EXPECTED_RESULTS@: RUN_TIME_ERROR

ischroot
if [ ischroot ]; then
if ischroot; then
# We expect to be in the jail
chroot /proc/1/root
if [ ischroot ]; then
if ischroot; then
# We expect to still be in the jail
exit 1
else
Expand Down

0 comments on commit a29093b

Please sign in to comment.