mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-16 02:02:58 -07:00
Added check for bash
Avoid issues when using wrong script engine.
This commit is contained in:
parent
ea071d81df
commit
104a7343d3
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue