added functions failover
This commit is contained in:
parent
902493ba35
commit
001d010d53
1 changed files with 10 additions and 2 deletions
10
demo.sh
10
demo.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue