mirror of
https://github.com/tests-always-included/mo.git
synced 2025-11-20 07:44:33 +01:00
Removing Bourne shell-ism (bash doesn't have this issue)
This commit is contained in:
4
mo
4
mo
@@ -133,7 +133,7 @@ mustache-get-content() {
|
|||||||
if [[ "${#@}" -gt 0 ]]; then
|
if [[ "${#@}" -gt 0 ]]; then
|
||||||
CONTENT=""
|
CONTENT=""
|
||||||
|
|
||||||
for FILENAME in ${1+"$@"}; do
|
for FILENAME in "$@"; do
|
||||||
# This is so relative paths work from inside template files
|
# This is so relative paths work from inside template files
|
||||||
CONTENT="$CONTENT"'{{>'"$FILENAME"'}}'
|
CONTENT="$CONTENT"'{{>'"$FILENAME"'}}'
|
||||||
done
|
done
|
||||||
@@ -696,5 +696,5 @@ mustache-trim-whitespace() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
mustache-get-content MUSTACHE_CONTENT ${1+"$@"}
|
mustache-get-content MUSTACHE_CONTENT "$@"
|
||||||
mustache-parse "$MUSTACHE_CONTENT" "" true
|
mustache-parse "$MUSTACHE_CONTENT" "" true
|
||||||
|
|||||||
Reference in New Issue
Block a user