File tree Expand file tree Collapse file tree 3 files changed +6
-21
lines changed Expand file tree Collapse file tree 3 files changed +6
-21
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ bpm-load() {
110
110
fi
111
111
done
112
112
113
- # sleep 2000
114
113
if [ " $__bpm_file_was_sourced " = ' no' ]; then
115
114
printf ' %s\n' " bpm-load: Error: Could not automatically find package file to source"
116
115
__bpm_bpm_load_restore_options
@@ -124,13 +123,13 @@ bpm-load() {
124
123
# @description Restore the previous options
125
124
# @noargs
126
125
__bpm_bpm_load_restore_options () {
127
- if [ " $__bpm_setNullglob " ]; then
126
+ if [ " $__bpm_setNullglob " = ' yes ' ]; then
128
127
shopt -s nullglob
129
128
else
130
129
shopt -u nullglob
131
130
fi
132
131
133
- if [ " $__bpm_setExtglob " ]; then
132
+ if [ " $__bpm_setExtglob " = ' yes ' ]; then
134
133
shopt -s extglob
135
134
else
136
135
shopt -u extglob
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ load './util/init.sh'
11
11
assert test_util.is_exported ' BPM_ROOT'
12
12
}
13
13
14
-
15
14
@test " exports BPM_CELLAR" {
16
- BPM_CELLAR=/lol run do-init bash
15
+ unset BPM_ROOT
16
+ eval " $( BPM_CELLAR=/lol do-init bash) "
17
17
18
18
assert_success
19
- assert_line -p ' export BPM_CELLAR="/lol"'
19
+ assert [ " $BPM_CELLAR " = ' /lol' ]
20
+ assert test_util.is_exported ' BPM_CELLAR'
20
21
}
21
22
22
-
23
23
@test " errors if shell is not available" {
24
24
run do-init fakesh
25
25
Original file line number Diff line number Diff line change @@ -20,20 +20,6 @@ test_util.is_exported() {
20
20
esac
21
21
22
22
return 1
23
-
24
- # if declare -x | while read -r line; do
25
- # case "$line" in
26
- # "declare -x $variable_name"=*) return 10 ;;
27
- # esac
28
- # done; then
29
- # return 1
30
- # else
31
- # if (($? == 10)); then
32
- # return 0
33
- # else
34
- # return 1
35
- # fi
36
- # fi
37
23
fi
38
24
}
39
25
You can’t perform that action at this time.
0 commit comments