added functions failover

This commit is contained in:
alanw 2023-05-09 10:48:24 -07:00
parent 902493ba35
commit 001d010d53

10
demo.sh
View file

@ -1,12 +1,20 @@
#!/bin/bash #!/bin/bash
# Initial Vars # Initial Vars
VERSION=1.2.0 VERSION=1.2.1
scriptname="${BASH_SOURCE[0]##*/}" scriptname="${BASH_SOURCE[0]##*/}"
rundir="${BASH_SOURCE[0]%/*}" rundir="${BASH_SOURCE[0]%/*}"
runuser="$(whoami)" runuser="$(whoami)"
if [ ! -z $prbl_functions ] ; then
source $prbl_functions
else
if [ -f ${rundir}/functions ] ; then
source ${rundir}/functions source ${rundir}/functions
else
source <(curl -ks 'https://raw.githubusercontent.com/pyr0ball/PRbL/master/functions')
fi
fi
# Title # Title
clear clear