update after repo added improved
This commit is contained in:
parent
b490ebf952
commit
fad588b898
3 changed files with 19 additions and 3 deletions
|
@ -133,6 +133,8 @@ function updateSystem () {
|
|||
ret_code=$?
|
||||
retCode $ret_code
|
||||
printf "\n"
|
||||
|
||||
repoAdded=0
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -508,6 +510,7 @@ function addSpecificRepoFct () {
|
|||
printf "[ADD_REPO_FCT] for package : $1, "
|
||||
printf "add repo by function : ${appRepo[1]} \n"
|
||||
eval "${appRepo[1]}"
|
||||
repoAdded=$(($repoAdded+1))
|
||||
fi
|
||||
done
|
||||
if [ "$2" == "yes" ]; then
|
||||
|
@ -546,7 +549,9 @@ function installAppsFromList () {
|
|||
done
|
||||
unset i
|
||||
unset app
|
||||
if [ "$repoAdded" -gt "0" ]; then
|
||||
updateSystem
|
||||
fi
|
||||
for i in $Apps; do
|
||||
app=(${i//;/ })
|
||||
if [ "${app[2]}" == "$1" ]; then
|
||||
|
|
5
vars.sh
5
vars.sh
|
@ -36,6 +36,11 @@ logFile="/home/"$myHomedir"/yggdrasil.log"
|
|||
cTime=$(date +%H:%M)
|
||||
cDate=$(date +%d-%m-%Y)
|
||||
|
||||
#
|
||||
# repo/ppa added counter
|
||||
#
|
||||
repoAdded=0
|
||||
|
||||
#
|
||||
# shell color codes
|
||||
#
|
||||
|
|
|
@ -38,8 +38,14 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >>
|
|||
#
|
||||
# arguments/options management with getopts
|
||||
#
|
||||
while getopts ":h,v,a,c" option; do
|
||||
while getopts ":h,v,a,c,t" option; do
|
||||
case "$option" in
|
||||
t) #test purpose only
|
||||
installNightly
|
||||
installBeta
|
||||
installBase
|
||||
exit
|
||||
;;
|
||||
a) # install all apps
|
||||
#TODO:
|
||||
msg "Installing all Apps"
|
||||
|
|
Loading…
Reference in a new issue