File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ __bp_preexec_invoke_exec() {
156
156
local this_command=" $( history 1 | sed -e " s/^[ ]*[0-9]*[ ]*//g" ) " ;
157
157
158
158
# Sanity check to make sure we have something to invoke our function with.
159
- if [ -z " $this_command " ]; then
159
+ if [[ -z " $this_command " ] ]; then
160
160
return
161
161
fi
162
162
@@ -179,7 +179,7 @@ __bp_preexec_invoke_exec() {
179
179
__bp_preexec_and_precmd_install () {
180
180
181
181
# Make sure this is bash that's running this and return otherwise.
182
- if [ -z " $BASH_VERSION " ]; then
182
+ if [[ -z " $BASH_VERSION " ] ]; then
183
183
return 1;
184
184
fi
185
185
@@ -192,7 +192,7 @@ __bp_preexec_and_precmd_install() {
192
192
# if it doesn't already have one.
193
193
local existing_prompt_command
194
194
195
- if [ -n " $PROMPT_COMMAND " ]; then
195
+ if [[ -n " $PROMPT_COMMAND " ] ]; then
196
196
existing_prompt_command=$( echo " $PROMPT_COMMAND " | sed ' /; *$/!s/$/;/' )
197
197
else
198
198
existing_prompt_command=" "
You can’t perform that action at this time.
0 commit comments