File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -713,12 +713,12 @@ function add_prompt_command() {
713
713
return 0
714
714
fi
715
715
716
- if [ -z " $PROMPT_COMMAND " ]; then
716
+ if [[ -z " $PROMPT_COMMAND " ] ]; then
717
717
PROMPT_COMMAND=" $new_entry "
718
718
return 0
719
719
fi
720
720
721
- if [ " $insert_before " == " true" ]; then
721
+ if [[ " $insert_before " == " true" ] ]; then
722
722
PROMPT_COMMAND=" ${new_entry} ;${PROMPT_COMMAND} "
723
723
else
724
724
PROMPT_COMMAND=" ${PROMPT_COMMAND} ;${new_entry} "
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function test_original_prompt_is_restored() {
23
23
# Navigate back into the repo
24
24
cd " $REPO_ROOT "
25
25
run_prompt_command
26
- if [ " $PS1 " == " $" ]; then
26
+ if [[ " $PS1 " == " $" ] ]; then
27
27
echo " PS1: $PS1 == \$ "
28
28
return 1
29
29
fi
You can’t perform that action at this time.
0 commit comments