From: Tim Date: Wed, 20 Apr 2011 21:54:27 +0000 (-0700) Subject: Dash (default /bin/sh on Debian and Ubuntu) does not support 'echo -e'. That invocat... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0c5dcc82c4d58dbb88ea7ebdb0ab2f76c303bb88;p=puppet-concat.git Dash (default /bin/sh on Debian and Ubuntu) does not support 'echo -e'. That invocation of echo is not POSIX compliant: https://bugs.launchpad.net/ubuntu/+source/dash/+bug/72167 --- diff --git a/files/concatfragments.sh b/files/concatfragments.sh index 52fd684..47663fd 100644 --- a/files/concatfragments.sh +++ b/files/concatfragments.sh @@ -111,7 +111,7 @@ cd ${WORKDIR} if [ x${WARNMSG} = "x" ]; then : > "fragments.concat" else - echo -e "$WARNMSG" > "fragments.concat" + printf '%s\n' "$WARNMSG" > "fragments.concat" fi # find all the files in the fragments directory, sort them numerically and concat to fragments.concat in the working dir