I have $weMountedBoot
set to false like this in the beginning of my script:
weMountedBoot=false
Now if it isn't mounted, and thus the conditional code runs I get this error and the variable is not set to true:
./verifyBootFiles: line 41: false=true: command not found
relevant code:
if ! mount | grep "/boot" > /dev/null
then
sudo mount -r -U $toCheck $mountPoint
$weMountedBoot=true
fi
What's wrong? As you probably figured I really like shell scripting and have loads of experience... so any other remarks about the code are also welcome.