From 001d010d530e41ebf83ff9fb7b11e1044077a200 Mon Sep 17 00:00:00 2001 From: alanw Date: Tue, 9 May 2023 10:48:24 -0700 Subject: [PATCH] added functions failover --- demo.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/demo.sh b/demo.sh index 13f8a8b..405275e 100755 --- a/demo.sh +++ b/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