Fix build for files that try to source opt_hooks

This commit is contained in:
Ethan P 2019-09-26 15:42:52 -07:00
parent e9f2b244a8
commit 7e4d8257fd
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA

View File

@ -84,7 +84,7 @@ step_preprocess() {
fi
# Embed library scripts.
if [[ "$line" =~ ^[[:space:]]*source[[:space:]]+[\"\']\$\{?LIB\}/([a-z-]+\.sh)[\"\'] ]]; then
if [[ "$line" =~ ^[[:space:]]*source[[:space:]]+[\"\']\$\{?LIB\}/([a-z_-]+\.sh)[\"\'] ]]; then
echo "# --- BEGIN LIBRARY FILE: ${BASH_REMATCH[1]} ---"
cat "$LIB/${BASH_REMATCH[1]}" | {
if [[ "$OPT_MINIFY" = "lib" ]]; then