mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-06-20 19:57:46 +02: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
|
fi
|
||||||
|
|
||||||
# Embed library scripts.
|
# 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]} ---"
|
echo "# --- BEGIN LIBRARY FILE: ${BASH_REMATCH[1]} ---"
|
||||||
cat "$LIB/${BASH_REMATCH[1]}" | {
|
cat "$LIB/${BASH_REMATCH[1]}" | {
|
||||||
if [[ "$OPT_MINIFY" = "lib" ]]; then
|
if [[ "$OPT_MINIFY" = "lib" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user