I have the code bellow which is supposed to check if the 1st argument is anything other than "boot" or "shutdown"
if [[ "$1" != "boot" || "$1" != "shutdown" ]]
then
echo "foo"
exit 1
fi
the code looks correct but when I pass it boot, as in $1 = boot, it think that $1 is not equal to boot and print out "foo".
I am very confused and any help is appreciated.