Skip to content

Commit

Permalink
wrap path in quote marks as sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Forster committed Nov 21, 2018
1 parent 51c9efe commit 0fa2a18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions script/linux-after-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export PATH=$INSTALL_DIR:\$PATH"

case "$1" in
configure)
echo "$SCRIPT" > ${PROFILE_D_FILE};
. ${PROFILE_D_FILE};
echo "$SCRIPT" > "${PROFILE_D_FILE}";
. "${PROFILE_D_FILE}";
;;

abort-upgrade|abort-remove|abort-deconfigure)
Expand Down
8 changes: 4 additions & 4 deletions script/linux-after-remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ PROFILE_D_FILE="/etc/profile.d/github-desktop.sh"

case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
echo "#!/bin/sh" > ${PROFILE_D_FILE};
. ${PROFILE_D_FILE};
rm ${PROFILE_D_FILE};
echo "#!/bin/sh" > "${PROFILE_D_FILE}";
. "${PROFILE_D_FILE}";
rm "${PROFILE_D_FILE}";
;;

*)
Expand All @@ -16,4 +16,4 @@ case "$1" in
;;
esac

exit 0
exit 0

0 comments on commit 0fa2a18

Please sign in to comment.