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 @@ -183,7 +183,7 @@ is an empty string
183
183
184
184
#### Variables set
185
185
186
- * ** REPLY ** (string): The full path to the directory
186
+ * ** directory ** (string): The full path to the directory
187
187
188
188
### core.init()
189
189
Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ core.should_output_color() {
362
362
# @description Gets information from a particular package. If the key does not exist, then the value
363
363
# is an empty string
364
364
# @arg $1 string The `$BASALT_PACKAGE_DIR` of the caller
365
- # @set REPLY string The full path to the directory
365
+ # @set directory string The full path to the directory
366
366
core.get_package_info () {
367
367
unset REPLY; REPLY=
368
368
local basalt_package_dir=" $1 "
@@ -374,7 +374,7 @@ core.get_package_info() {
374
374
core.print_error " File '$toml_file ' could not be found"
375
375
fi
376
376
377
- local regex=" ^[ \t]*${key_name} [ \t]*=[ \t]*[' \ " ](.*)[' \" ] "
377
+ local regex=$' ^[ \t ]*' " ${key_name} " $' [ \t ]*=[ \t ]*[\' "](.*)[\' "] '
378
378
while IFS= read -r line || [ -n " $line " ]; do
379
379
if [[ $line =~ $regex ]]; then
380
380
REPLY=${BASH_REMATCH[1]}
You can’t perform that action at this time.
0 commit comments