Add message for wrong mount points

This commit is contained in:
Philip Henning 2018-12-28 13:25:21 +01:00
parent 4b05a9acb5
commit a74a3063be

View file

@ -9,12 +9,13 @@ if [[ $UID -ne 0 ]]; then
exit 1 exit 1
fi fi
options=( storage aws )
if [[ -z "$1" ]]; then if [[ -z "$1" ]]; then
echo "Usage: $0 <project>" echo "Usage: $0 <project>"
echo "e.g.: $0 c3" echo "e.g.: $0 c3"
echo " " echo " "
echo "Valid options:" echo "Valid options:"
options=( storage aws )
for i in "${options[@]}"; do for i in "${options[@]}"; do
echo " - $i" echo " - $i"
done done
@ -40,4 +41,10 @@ case $1 in
mount.cifs //aws.lan.c3voc.de/fuse $fuse -o rw,guest -o uid=phg mount.cifs //aws.lan.c3voc.de/fuse $fuse -o rw,guest -o uid=phg
mount.cifs //aws.lan.c3voc.de/video $video -o rw,guest -o uid=phg mount.cifs //aws.lan.c3voc.de/video $video -o rw,guest -o uid=phg
;; ;;
*)
echo "Mountpoint does not exist."
echo "Please use one of the following:"
for i in "${options[@]}"; do
echo " - $i"
done
esac esac