# 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"; }
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