Skip to content

Commit

Permalink
add ~ to profile check
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oehrli committed Jan 18, 2021
1 parent 08d0215 commit ccba10f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions local/oudbase/bin/oudbase_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -545,12 +545,12 @@ fi

# append to the profile....
if [ "${APPEND_PROFILE}" = "TRUE" ]; then
if [ -f "${HOME}/.bash_profile" ]; then
PROFILE="${HOME}/.bash_profile"
elif [ -f "${HOME}/.profile" ]; then
PROFILE="${HOME}/.profile"
if [ -f "~/.bash_profile" ]; then
PROFILE="~/.bash_profile"
elif [ -f "~/.profile" ]; then
PROFILE="~/.profile"
else
CleanAndQuit 20
CleanAndQuit 20
fi
DoMsg "Append to profile ${PROFILE}"
echo "" >>"${PROFILE}"
Expand Down

0 comments on commit ccba10f

Please sign in to comment.