From 3516cdd631848a58846cc8de67b880f3f5cccac6 Mon Sep 17 00:00:00 2001 From: Tyler Akins Date: Fri, 13 Feb 2015 11:38:03 +0000 Subject: [PATCH] Removing Bourne shell-ism (bash doesn't have this issue) --- mo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mo b/mo index 2bf3d5f..793a72c 100755 --- a/mo +++ b/mo @@ -133,7 +133,7 @@ mustache-get-content() { if [[ "${#@}" -gt 0 ]]; then CONTENT="" - for FILENAME in ${1+"$@"}; do + for FILENAME in "$@"; do # This is so relative paths work from inside template files CONTENT="$CONTENT"'{{>'"$FILENAME"'}}' done @@ -696,5 +696,5 @@ mustache-trim-whitespace() { } -mustache-get-content MUSTACHE_CONTENT ${1+"$@"} +mustache-get-content MUSTACHE_CONTENT "$@" mustache-parse "$MUSTACHE_CONTENT" "" true