mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-12 17:20:40 +01:00
Fix build for files that try to source opt_hooks
This commit is contained in:
parent
e9f2b244a8
commit
7e4d8257fd
2
build.sh
2
build.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user