summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/linhes-scripts/linhes_update.sh
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-18 05:39:22 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-18 05:39:22 (GMT)
commita9e6741db5e5f6364ff731b2f1ef82964a8615d1 (patch)
tree162efaacc3aa96752d2c64e3bf0cb5b08256f114 /abs/core-testing/linhes-scripts/linhes_update.sh
parent1d77d46213824b0ea9ca552529188cca85e1fef9 (diff)
downloadlinhes_pkgbuild-a9e6741db5e5f6364ff731b2f1ef82964a8615d1.zip
linhes_pkgbuild-a9e6741db5e5f6364ff731b2f1ef82964a8615d1.tar.gz
linhes_pkgbuild-a9e6741db5e5f6364ff731b2f1ef82964a8615d1.tar.bz2
linhes-scripts:Improved linhes_update.sh to more acurately determine if an upgrade is available.
Diffstat (limited to 'abs/core-testing/linhes-scripts/linhes_update.sh')
-rw-r--r--abs/core-testing/linhes-scripts/linhes_update.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/abs/core-testing/linhes-scripts/linhes_update.sh b/abs/core-testing/linhes-scripts/linhes_update.sh
index 27ada60..6890d26 100644
--- a/abs/core-testing/linhes-scripts/linhes_update.sh
+++ b/abs/core-testing/linhes-scripts/linhes_update.sh
@@ -10,8 +10,9 @@ dsply () {
fi
}
chck () {
- sudo pacman -Sy > /tmp/check_update
- if grep -q is\ up\ to\ date /tmp/check_update
+ sudo pacman -Sy
+ sudo pacman -Qu > /tmp/check_update
+ if grep -q no\ upgrades\ found /tmp/check_update
then
killall osd_cat
echo -e "No updates available\n at this time." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 5 -A centre