diff --git a/installer.sh b/installer.sh index 9ae16af..1f48040 100755 --- a/installer.sh +++ b/installer.sh @@ -6,7 +6,8 @@ if [ -n "$SUDO_USER" ]; then else export RUN_AS=$USER fi -export RUN_AS_HOME=$(eval echo ~"$RUN_AS") +RUN_AS_HOME=$(eval echo ~"$RUN_AS") +export RUN_AS_HOME # Check for git command to be installed if ! command -v git &>/dev/null; then diff --git a/utils/common.sh b/utils/common.sh index af6488c..ff9e34b 100644 --- a/utils/common.sh +++ b/utils/common.sh @@ -45,7 +45,8 @@ function detect_user() { export RUN_AS="$USER" export RUN_AS_UID="$EUID" fi - export RUN_AS_HOME=$(eval echo ~"$RUN_AS") + RUN_AS_HOME=$(eval echo ~"$RUN_AS") + export RUN_AS_HOME export VENV_PATH="${RUN_AS_HOME}/.venvs/${INSTALLER_VENV_NAME}" }