added functions failover
This commit is contained in:
parent
902493ba35
commit
001d010d53
1 changed files with 10 additions and 2 deletions
12
demo.sh
12
demo.sh
|
|
@ -1,12 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Initial Vars
|
||||
VERSION=1.2.0
|
||||
VERSION=1.2.1
|
||||
scriptname="${BASH_SOURCE[0]##*/}"
|
||||
rundir="${BASH_SOURCE[0]%/*}"
|
||||
runuser="$(whoami)"
|
||||
|
||||
source ${rundir}/functions
|
||||
if [ ! -z $prbl_functions ] ; then
|
||||
source $prbl_functions
|
||||
else
|
||||
if [ -f ${rundir}/functions ] ; then
|
||||
source ${rundir}/functions
|
||||
else
|
||||
source <(curl -ks 'https://raw.githubusercontent.com/pyr0ball/PRbL/master/functions')
|
||||
fi
|
||||
fi
|
||||
|
||||
# Title
|
||||
clear
|
||||
|
|
|
|||
Loading…
Reference in a new issue