|
|
@ -54,11 +54,12 @@ case "$type" in |
|
|
|
## check if we need to update: |
|
|
|
## check if we need to update: |
|
|
|
if [ $currage -ge $maxage ]; then |
|
|
|
if [ $currage -ge $maxage ]; then |
|
|
|
echo "apt-get --quiet update" |
|
|
|
echo "apt-get --quiet update" |
|
|
|
|
|
|
|
echo "apt-cache updated (age was: $currage)" >> "$__messages_out" |
|
|
|
fi |
|
|
|
fi |
|
|
|
else |
|
|
|
else |
|
|
|
echo "apt-get --quiet update" |
|
|
|
echo "apt-get --quiet update" |
|
|
|
|
|
|
|
echo "apt-cache updated (age was: $currage)" >> "$__messages_out" |
|
|
|
fi |
|
|
|
fi |
|
|
|
echo "apt-cache updated (age was: $currage)" >> "$__messages_out" |
|
|
|
|
|
|
|
;; |
|
|
|
;; |
|
|
|
pacman) echo "pacman --noprogressbar --sync --refresh" ;; |
|
|
|
pacman) echo "pacman --noprogressbar --sync --refresh" ;; |
|
|
|
*) |
|
|
|
*) |
|
|
|