Skip to content

Commit

Permalink
Merge pull request #80 from DouglasWebster/gen-ref-correction
Browse files Browse the repository at this point in the history
Fix test $directories_override raising an error
  • Loading branch information
NathanLovato authored Feb 13, 2021
2 parents 086e6bb + c02367d commit 0814b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_reference
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ path_collector="godot-scripts/Collector.gd"
# Overrides the content of the directories variable in ReferenceCollectorCLI.gd if we got --directory arguments
file_ref_collector=$(mktemp)
cat $path_ref_collector >$file_ref_collector
if test $directories_override != ""; then
if test "$directories_override" != ""; then
args=$(echo $directories_override | sed -r 's/([-._a-zA-Z0-9]+)/"\1",/g' | sed -r 's/,$//')
sed -ri "s/^var directories.+/var directories := [$args]/" $file_ref_collector
fi
Expand Down

0 comments on commit 0814b01

Please sign in to comment.