-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2265
Vidar Holen edited this page Nov 3, 2022
·
1 revision
if [ "$1" = "install" ] & [ "$USER" != "root" ]
then
echo "Must be root to install"
fi
if [ "$1" = "install" ] && [ "$USER" != "root" ]
then
echo "Must be root to install"
fi
ShellCheck found a test
command followed by a &
. This runs the test in the background, effectively ignoring it. To specify "logical AND" between two commands, use &&
.
None
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!