Changes between Version 14 and Version 15 of SshfsMnt
- Timestamp:
- Oct 14, 2015, 2:38:05 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SshfsMnt
v14 v15 38 38 39 39 # the place file systems are to be mounted 40 MOUNT="/media "40 MOUNT="/media/sshfs" 41 41 if [[ ! -d "$MOUNT" ]]; then 42 echo " It looks like $MOUNT doesn't exist?"42 echo "$MOUNT doesn't exist" 43 43 exit 1 44 44 fi … … 75 75 DF=$(df | awk -F' ' '{ print $6 }' | grep "$MOUNT/$SERVER") 76 76 if [[ $DF ]]; then 77 echo "It appears that $SERVER is already mounted at $DF?" 78 exit 1 77 echo "$SERVER is already mounted at $DF" 78 # nothing needs to be done, 79 exit 0 79 80 fi 80 81 … … 123 124 124 125 # the place file systems are to be mounted 125 MOUNT="/media "126 MOUNT="/media/sshfs" 126 127 if [[ ! -d "$MOUNT" ]]; then 127 128 echo "It looks like $MOUNT doesn't exist?"