#!/bin/bash
+# check_mount: tests a mount point to see if it is already mounted, and if
+# it is not, mounts it.
if [ -z "$1" ]; then
echo This program needs a mount point as a parameter. If the mount point is not
echo already mounted, then the program will attempt to mount it.
fi
if [ -z "$(mount | grep "$1")" ]; then
- mount "$1"
+ sudo mount "$1"
fi