Soft'N'Design Software
/
projects
/
debian6500.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bashisms hunt
[debian6500.git]
/
install
/
bios
/
update_bios_cfg.sh
diff --git
a/install/bios/update_bios_cfg.sh
b/install/bios/update_bios_cfg.sh
index 8bd351680f50e0788192e346efd9711de6970a05..e960e6f74e91eee43dbfe785f79bd07ea093616d 100755
(executable)
--- a/
install/bios/update_bios_cfg.sh
+++ b/
install/bios/update_bios_cfg.sh
@@
-9,7
+9,7
@@
mydir=$(cd $mydir; pwd)
# formating functions
# 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"; }
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
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
[ "$ANS" = "y" ] || exit 1
fi