Removing Bourne shell-ism (bash doesn't have this issue)

This commit is contained in:
Tyler Akins 2015-02-13 11:38:03 +00:00
parent 6a6aadca50
commit 3516cdd631

4
mo
View File

@ -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