Skip to content

Commit 0982aea

Browse files
authored
Merge pull request #24 from 5bentz/fix_double_quotes
Prevent globbing of file paths
2 parents 17870e4 + 67877fe commit 0982aea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/install_host_app.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ echo "Installing $BROWSER_NAME host config"
114114
# Create config dir if not existing
115115
mkdir -p "$TARGET_DIR"
116116

117-
PATH_ESC="$(echo $PATH | sed -e 's/@/\\@/g')"
118-
PASS_PATH_ESC="$(echo $PASS_PATH | sed -e 's/@/\\@/g')"
119-
HOST_FILE_PATH_ESC="$(echo $HOST_FILE_PATH | sed -e 's/@/\\@/g')"
120-
PYTHON3_PATH_ESC="$(echo $PYTHON3_PATH | sed -e 's/@/\\@/g')"
117+
PATH_ESC="$(echo "$PATH" | sed -e 's/@/\\@/g')"
118+
PASS_PATH_ESC="$(echo "$PASS_PATH" | sed -e 's/@/\\@/g')"
119+
HOST_FILE_PATH_ESC="$(echo "$HOST_FILE_PATH" | sed -e 's/@/\\@/g')"
120+
PYTHON3_PATH_ESC="$(echo "$PYTHON3_PATH" | sed -e 's/@/\\@/g')"
121121

122122
# Replace path to python3 executable \
123123
# Replace path to pass (only in a line starting with "COMMAND =") \

0 commit comments

Comments
 (0)