added testing mode

master
czoczo 7 years ago
parent c065a23e30
commit 37b69fff3f
  1. 7
      bmotd.sh

@ -62,6 +62,11 @@ main () {
update
exit 0
;;
test)
MOTD="/dev/stdout"
update
exit 0
;;
*)
printHelp
esac
@ -105,7 +110,7 @@ update() {
}
function printHelp {
printf "./$0 update | disable | enable"
printf "./$0 test | update | disable | enable"
exit 0;
}

Loading…
Cancel
Save