Bashisms hunt
[debian6500.git] / install / ipmi / update_blade_cfg.sh
index 413a9ca7d178dbac2eb7c69eb216505d1b1644c3..59389e78d312fab9c01e6ccd2b4b942b21a9ee75 100755 (executable)
@@ -9,7 +9,7 @@ mydir=$(cd $mydir; pwd)
 
 # formating functions
 
-_echo () { [ "$(echo -e '')" ] && echo $@ || echo -e $@; }
+_echo () { printf "$@\n"; }
 title () { _echo "\033[0;1m$*\033[0;0m"; }
 pass () { _echo "\033[1;32m$*\033[0;0m"; }
 warn () { _echo "\033[1;33m$*\033[0;0m"; }
@@ -48,7 +48,8 @@ done
   fail "Real mode, things will really append" || \
   warn "Dummy mode, nothing will be done"
 if [ ! "$ANS" = "yes" ]; then
-  read -p "Press 'y' to continue: " ANS
+  printf "Press 'y' to continue: "
+  read ANS
   [ "$ANS" = "y" ] || exit 1
 fi