From 104a7343d3607c628f23aeac2046dba3f0dd4f12 Mon Sep 17 00:00:00 2001 From: Henric Andersson Date: Tue, 20 Oct 2015 09:12:11 -0700 Subject: [PATCH] Added check for bash Avoid issues when using wrong script engine. --- plexupdate.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plexupdate.sh b/plexupdate.sh index 3976f46..63e9e93 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -28,6 +28,12 @@ # and also what's new. # #################################################################### +# Quick-check before we allow bad things to happen +if [ -z "${BASH_VERSINFO}" ]; then + echo "ERROR: You must execute this script with BASH" + exit 255 +fi +#################################################################### # Set these two to what you need, or create a .plexupdate file # in your home directory with these two (avoids changing this) # DOWNLOADDIR is the full directory path you would like the download to go.