diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-07-27 22:39:05 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-07-27 22:39:05 +0200 |
commit | 3c5301226aaf6db7c739475fdeb69a9f02acd096 (patch) | |
tree | dcc0454ad85676435988541a23017639cedd0b22 /autogen.sh | |
parent | core: add task #12187 in ChangeLog (diff) | |
download | weechat-3c5301226aaf6db7c739475fdeb69a9f02acd096.tar.xz weechat-3c5301226aaf6db7c739475fdeb69a9f02acd096.zip |
core: fix output of autogen.sh in shells like dash
Shell dash does not support option "-e" for echo, so this "-e" was displayed
in output. Therefore special chars for colors and alignment have been removed.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh index 758d9739d..9d0138af8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -23,8 +23,6 @@ ### ### common stuff ### -OK="\\033[70G[\\033[1;32mOK\\033[1;00m]" -FAIL="\\033[70G[\\033[1;31mFAILED\\033[1;00m]" AUTOGEN_LOG=autogen.log @@ -40,12 +38,12 @@ err () run () { - echo -n "Running \"$@\"" + echo -n "Running \"$@\"..." eval $@ >$AUTOGEN_LOG 2>&1 if [ $? = 0 ] ; then - echo -e $OK + echo " OK" else - echo -e $FAIL + echo " FAILED" err fi } |