Skip to content

Commit

Permalink
Merge pull request #24 from 5bentz/fix_double_quotes
Browse files Browse the repository at this point in the history
Prevent globbing of file paths
  • Loading branch information
tuxor1337 authored Jun 22, 2018
2 parents 17870e4 + 67877fe commit 0982aea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/install_host_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ echo "Installing $BROWSER_NAME host config"
# Create config dir if not existing
mkdir -p "$TARGET_DIR"

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

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

0 comments on commit 0982aea

Please sign in to comment.