diff --git a/open-in-server.sh b/open-in-server.sh index a6691e1..c735a05 100644 --- a/open-in-server.sh +++ b/open-in-server.sh @@ -3,7 +3,7 @@ # This script opens supported locations in my server by appropriately changing the # mount locations for it to work over ssh. -ROOTDIR="$(echo $PWD | cut -d/ -f-2,3)" +ROOTDIR="$(echo $PWD | cut -d/ -f-3)" if [ "$ROOTDIR" == "/mnt/server" ]; then ssh -t server-ts-rsync "cd \"/mnt/storage/$(echo $PWD | cut -d/ -f4-)\"; fish -l"