From 3730348fce59ad77c2bc7b691b23598c7d107dc4 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Tue, 9 Apr 2019 01:24:52 +0800 Subject: [PATCH] More escaping bullshit --- SongSync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SongSync.sh b/SongSync.sh index e0eafd3..8146e11 100755 --- a/SongSync.sh +++ b/SongSync.sh @@ -111,7 +111,7 @@ if [ "$1" = "apply" ]; then echo "Creating dir for: ${add_path}" mkdir -p "${path_to_songs}/${pack_dir}" echo "Downloading files" - escaped_add_path="/mnt/media/Simfiles/"$(echo "$add_path" | sed 's/ /\\\\\\ /g' | sed "s/'/\\\\\\\\\\\'/g" | sed "s/(/\\\\\\\\\\\\(/g" | sed "s/)/\\\\\\\\\\\\\\)/g") + escaped_add_path="/mnt/media/Simfiles/"$(echo "$add_path" | sed 's/ /\\\\\\ /g' | sed "s/'/\\\\\\\\\\\'/g" | sed "s/(/\\\\\\\\\\\\(/g" | sed "s/)/\\\\\\\\\\\\\\)/g" | sed "s/&/\\\\\\\\\\\&/g") scp_command="scp -r groovenet@cameron1729.xyz:$escaped_add_path \"${path_to_songs}/${pack_dir}\"" echo "$scp_command" eval "$scp_command" -- 2.11.0