Warning if not run in bash

This commit is contained in:
Howard20181 2022-08-17 01:46:18 +08:00
parent ac410b3f6c
commit a0e09aa774

View File

@ -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