Skip to content

Commit

Permalink
Fixed variable naming.
Browse files Browse the repository at this point in the history
- Had an extra vairable for return value declared.
  • Loading branch information
rcaloras committed May 13, 2016
1 parent b3f02c8 commit f2370fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bash-preexec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ __bp_imported="defined"

# Should be available to each precmd and preexec
# functions, should they want it.
__bp_last_command_ret_value="$?"
__bp_last_ret_value="$?"

# Command to set our preexec trap. It's invoked once via
# PROMPT_COMMAND and then removed.
Expand Down Expand Up @@ -87,7 +87,7 @@ __bp_interactive_mode() {
# It will invoke any functions defined in the precmd_functions array.
__bp_precmd_invoke_cmd() {

# Should be available to each precmd function, should it want it.
# Save the returned value from our last command
__bp_last_ret_value="$?"

# For every function defined in our function array. Invoke it.
Expand Down

0 comments on commit f2370fe

Please sign in to comment.