Patchwork [meta-fsl-arm] scripts/get-maintainer: use printf instead of "echo -e"

login
register
mail settings
Submitter Mario Domenech Goulart
Date April 28, 2014, 12:46 p.m.
Message ID <1398689192-14048-1-git-send-email-mario@ossystems.com.br>
Download mbox | patch
Permalink /patch/71117/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Mario Domenech Goulart - April 28, 2014, 12:46 p.m.
Dash doesn't treat -e as a command line switch for echo.

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
---
 scripts/get-maintainer |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/scripts/get-maintainer b/scripts/get-maintainer
index 9d1c0a6..071cdf6 100755
--- a/scripts/get-maintainer
+++ b/scripts/get-maintainer
@@ -73,9 +73,9 @@  for m in $machines; do
 
     if [ -n "$dump_mode" ]; then
 	    if [ -n "$maint" ]; then
-		    echo -e "${machine}\t${name}\t${maint}" >> $maintained
+		    printf "${machine}\t${name}\t${maint}\n" >> $maintained
 	    else
-		    echo -e "${machine}\t${name}" >> $orphan
+		    printf "${machine}\t${name}\n" >> $orphan
 	    fi
     else
 	    if [ -n "$maint" ]; then