Skip to content

Commit

Permalink
Update APP-MANAGER
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Aug 23, 2024
1 parent dbb8c94 commit 70779e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions APP-MANAGER
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ function _check_if_home_local_bin_is_not_in_path() {
read -rp " ◆ Want to add it to ~/.profile and ~/.bash_profile? (Y/n): " yn
if ! echo "$yn" | grep -i '^n' >/dev/null 2>&1; then
if test -f "$HOME/.profile"; then
printf '\n%s\n' 'export PATH="$PATH:${XDG_BIN_HOME:-$HOME/.local/bin}"' >> "$HOME/.profile"
printf '\n%s\n' "export PATH=\"\$PATH:\${XDG_BIN_HOME:-\$HOME/.local/bin}\"" >> "$HOME/.profile"
elif test -f "$HOME/.bash_profile"; then
printf '\n%s\n' 'export PATH="$PATH:${XDG_BIN_HOME:-$HOME/.local/bin}"' >> "$HOME/.bash_profile"
printf '\n%s\n' "export PATH=\"\$PATH:\${XDG_BIN_HOME:-\$HOME/.local/bin}\"" >> "$HOME/.bash_profile"
fi
echo "$DIVIDING_LINE"
echo " You might need to resource above files or reboot to apply these changes."
Expand Down

0 comments on commit 70779e5

Please sign in to comment.