From e3620e946bd064e01ca417267f8f55bdfca4f42a Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Thu, 6 Feb 2025 21:31:13 -0600 Subject: [PATCH] fix: Redundant selector --- open-in-server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"