From 37b69fff3f3587c7674745667685f5d461f5f08c Mon Sep 17 00:00:00 2001 From: czoczo Date: Mon, 17 Dec 2018 08:47:43 +0100 Subject: [PATCH] added testing mode --- bmotd.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bmotd.sh b/bmotd.sh index 33598f4..1840237 100755 --- a/bmotd.sh +++ b/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; }