Originally Posted by edsmith123
if [[ mountpoint -q /mnt/foo1 && mountpoint -q /mnt/foo2 && mountpoint -q /mnt/foo3 ]]
Should be seperate.
if mountpoint -q /mnt/foo1 && mountpoint -q /mnt/foo2 && mountpoint -q /mnt/foo3
: removed , seems to work in this circumstance.
From man bash
Conditional expressions are used by the [[ compound command and the
test and [ builtin commands to test file attributes and perform string
and arithmetic comparisons.
Since you're not looking to do any of the above and just looking for whether the command succeeds or fails, you don't need the . There may be a more correct way.