Skip to content

Commit

Permalink
Fix shellcheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander, Michael committed Dec 4, 2024
1 parent e838237 commit 1bbc89e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmdlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ else
export SUDO=
export SUDO_W_ENV=
fake-sudo() {
# pass thru the exit code implicitly
set -e
$*
"$@"
}
export -f fake-sudo
# Spoof 'sudo' in the environment to go to our wrapper that does nothing instead, including a sudo_w_env that drops the -E options as well.
Expand Down

0 comments on commit 1bbc89e

Please sign in to comment.