From a0e09aa7742c802ce13a0518c5d1c0ebddf9a94b Mon Sep 17 00:00:00 2001 From: Howard20181 <40033067+Howard20181@users.noreply.github.com> Date: Wed, 17 Aug 2022 01:46:18 +0800 Subject: [PATCH] Warning if not run in bash --- scripts/run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/run.sh b/scripts/run.sh index d4c17c4781..68a8eac1ce 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,6 +1,11 @@ #!/bin/bash cd "$(dirname "$0")" || exit +if [ ! "$BASH_VERSION" ] ; then + echo "Please do not use sh to run this script, just execute it directly" 1>&2 + exit 1 +fi + function Radiolist { declare -A o="$1" shift