mirror of
https://github.com/SinTan1729/random.git
synced 2025-02-05 14:12:38 -06:00
fix: Wrap paths in quotes
This commit is contained in:
parent
598328d430
commit
99a494ea1e
1 changed files with 2 additions and 2 deletions
|
@ -6,9 +6,9 @@
|
|||
ROOTDIR="$(echo $PWD | cut -d/ -f-2,3)"
|
||||
|
||||
if [ "$ROOTDIR" == "/mnt/server" ]; then
|
||||
ssh -t server-ts-rsync "cd /mnt/storage/$(echo $PWD | cut -d/ -f4-); fish -l"
|
||||
ssh -t server-ts-rsync "cd \"/mnt/storage/$(echo $PWD | cut -d/ -f4-)\"; fish -l"
|
||||
elif [[ "$ROOTDIR" == "/tank1/personal" || "$ROOTDIR" == "/tank1/media" ]]; then
|
||||
ssh -t server-ts-rsync "cd $PWD; fish -l"
|
||||
ssh -t server-ts-rsync "cd \"$PWD\"; fish -l"
|
||||
else
|
||||
echo "Unsupported directory."
|
||||
echo "Only /mnt/server/*, /tank1/* are supported."
|
||||
|
|
Loading…
Reference in a new issue