diff --git a/script/linux-after-install.sh b/script/linux-after-install.sh index bd40c2b3785..b6f0a7d1f0c 100644 --- a/script/linux-after-install.sh +++ b/script/linux-after-install.sh @@ -2,15 +2,15 @@ set -e -PROFILE_D_FILE="/etc/profile.d/${productFilename}.sh" +PROFILE_D_FILE="/etc/profile.d/github-desktop.sh" INSTALL_DIR="/opt/${productFilename}" -SCRIPT="#!/bin/sh -export PATH=$INSTALL_DIR:\$PATH" +SCRIPT=$"#!/bin/sh +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) diff --git a/script/linux-after-remove.sh b/script/linux-after-remove.sh index 7260fd93767..9a73886e2a5 100644 --- a/script/linux-after-remove.sh +++ b/script/linux-after-remove.sh @@ -1,13 +1,13 @@ #!/bin/bash set -e -PROFILE_D_FILE="/etc/profile.d/${productFilename}.sh" +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}"; ;; *) @@ -16,4 +16,4 @@ case "$1" in ;; esac -exit 0 \ No newline at end of file +exit 0