Skip to content

Commit

Permalink
fix: use posix-compliant source (dot) and exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccaffery committed Jan 5, 2021
1 parent aea2e75 commit cf33dde
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ __am_prompt_update()
"$PROMPT_INSTALL_TEMP/install.sh" $PROMPT_SHELL $PROMPT_INSTALL_TEMP
}

trap 'echo; echo; echo "${CLR_WARN}prompt: terminating update...${CLR_CLEAR}"; exit -1;' INT
trap 'echo; echo; echo "${CLR_WARN}prompt: terminating update...${CLR_CLEAR}"; exit 1;' INT

__am_prompt_update $@
2 changes: 1 addition & 1 deletion src/sh/scripts/add-var
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ __am_prompt_add_var() {
echo "add-var: adding varable: $VARIABLE"
echo >> "$VAR_PATH"
echo "$VARIABLE" >> "$VAR_PATH"
source "$VAR_PATH"
. "$VAR_PATH"
}

__am_prompt_add_var $@
2 changes: 1 addition & 1 deletion src/sh/scripts/update-prompt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ __am_prompt_update()
. "$PROMPT_INSTALL_TEMP/install.sh" $PROMPT_SHELL $PROMPT_INSTALL_TEMP
}

trap 'echo; echo; echo "${CLR_WARN}prompt: terminating update...${CLR_CLEAR}"; exit -1;' INT
trap 'echo; echo; echo "${CLR_WARN}prompt: terminating update...${CLR_CLEAR}"; exit 1;' INT

__am_prompt_update $@
2 changes: 1 addition & 1 deletion template/bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
if [ -f "$HOME/.bashrc" ]; then

# load bash
source "$HOME/.bashrc"
. "$HOME/.bashrc"
fi

0 comments on commit cf33dde

Please sign in to comment.