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
|
||||
for _package in $prbl_packages ; do
|
||||
if [[ $dry_run != true ]] ; then
|
||||
bash "${rundir}/$_package -i"
|
||||
if [ -f ${rundir}/$_package ] ; then
|
||||
if [[ $dry_run != true ]] ; then
|
||||
bash "${rundir}/$_package -i"
|
||||
else
|
||||
bash "${rundir}/$_package -D"
|
||||
fi
|
||||
else
|
||||
bash "${rundir}/$_package -D"
|
||||
fi
|
||||
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
|
||||
# Sets dependency installed flag to true
|
||||
depsinstalled=true
|
||||
|
|
|
|||
Loading…
Reference in a new issue