From 277178389ae20bd448d2b4d64c41e621402966d8 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Fri, 15 Jan 2021 19:05:53 +0100 Subject: [PATCH] some minor improvments --- bashbot.sh | 8 ++++---- dev/make-standalone.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bashbot.sh b/bashbot.sh index 5999b46..edca11d 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -15,7 +15,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # -# Usage: bashbot.sh [-h|--help|BOTCOMMANDS] +# Usage: bashbot.sh BOTCOMMAND BOTCOMMANDS="-h help init start stop status suspendback resumeback killback" # # Exit Codes: @@ -30,7 +30,7 @@ BOTCOMMANDS="-h help init start stop status suspendback resumeback killb # 8 - curl/wget missing # 10 - not bash! # -#### $$VERSION$$ v1.30-dev-18-gabe058a +#### $$VERSION$$ v1.30-dev-23-g0f27e71 ################################################################## # emmbeded system may claim bash but it is not @@ -191,8 +191,8 @@ case "$1" in "") [ -z "${SOURCE}" ] && printf "${ORANGE}Available commands: ${GREY}${BOTCOMMANDS}${NN}" && exit ;; "-h"*) LOGO="${BASHBOT_HOME:-.}/doc/bashbot.ascii" - [ -r "${LOGO}" ] && cat "${LOGO}" - sed -nE -e '/(NOT EDIT)|(shellcheck)/d' -e '3,/###/p' <"$0" + { [ -r "${LOGO}" ] && cat "${LOGO}" + sed -nE -e '/(NOT EDIT)|(shellcheck)/d' -e '3,/###/p' <"$0"; } | more exit;; "help") HELP="${BASHBOT_HOME:-.}/README" if [ -n "${INTERACTIVE}" ];then diff --git a/dev/make-standalone.sh b/dev/make-standalone.sh index 32aabee..49ffb52 100755 --- a/dev/make-standalone.sh +++ b/dev/make-standalone.sh @@ -11,7 +11,7 @@ # If you your bot is finished you can use make-standalone.sh to create the # the old all-in-one bashbot: bashbot.sh and commands.sh only! # -#### $$VERSION$$ v1.30-dev-22-g0596983 +#### $$VERSION$$ v1.30-dev-23-g0f27e71 ################################################################### #shellcheck disable=SC1090