# Common Routines # # Check status and print # OK or FAIL # check_status() { local ERR=$? echo -en "\\033[65G" if [ $ERR = 0 ]; then echo -en "\\033[1;32OK" else echo -en "\\033[1;31mFAIL" fi echo -e "\\033[0;39m" }