Skip to content

Commit

Permalink
[shell] Fix linting due to PR #147
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Sep 16, 2024
1 parent ab513c6 commit 5f40263
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}

Expand Down

0 comments on commit 5f40263

Please sign in to comment.