1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash mountpoint /media/Odin if [$? = 1] then echo "not a mountpoint, stopping script" else ls ~ fi