Skip to content

Commit

Permalink
Warning if not run in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 committed Aug 16, 2022
1 parent ac410b3 commit a0e09aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/run.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a0e09aa

Please sign in to comment.