added failover for dependencies
This commit is contained in:
parent
d72edbd368
commit
e51317fb6c
1 changed files with 11 additions and 4 deletions
|
|
@ -77,11 +77,18 @@ install-deps(){
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
for _package in $prbl_packages ; do
|
for _package in $prbl_packages ; do
|
||||||
|
if [ -f ${rundir}/$_package ] ; then
|
||||||
if [[ $dry_run != true ]] ; then
|
if [[ $dry_run != true ]] ; then
|
||||||
bash "${rundir}/$_package -i"
|
bash "${rundir}/$_package -i"
|
||||||
else
|
else
|
||||||
bash "${rundir}/$_package -D"
|
bash "${rundir}/$_package -D"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
if [[ $dry_run != true ]] ; then
|
||||||
|
run-from-url https://raw.githubusercontent.com/pyr0ball/PRbL-bashrc/master/extras/$_package -i
|
||||||
|
else
|
||||||
|
run-from-url https://raw.githubusercontent.com/pyr0ball/PRbL-bashrc/master/extras/$_package -D
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
# Sets dependency installed flag to true
|
# Sets dependency installed flag to true
|
||||||
depsinstalled=true
|
depsinstalled=true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue