mirror of
https://github.com/shokinn/.files.git
synced 2025-01-18 21:22:25 +00:00
Add message for wrong mount points
This commit is contained in:
parent
4b05a9acb5
commit
a74a3063be
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue