diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-18 05:39:22 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-18 05:39:22 (GMT) |
commit | a9e6741db5e5f6364ff731b2f1ef82964a8615d1 (patch) | |
tree | 162efaacc3aa96752d2c64e3bf0cb5b08256f114 /abs | |
parent | 1d77d46213824b0ea9ca552529188cca85e1fef9 (diff) | |
download | linhes_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')
-rw-r--r-- | abs/core-testing/linhes-scripts/PKGBUILD | 2 | ||||
-rw-r--r-- | abs/core-testing/linhes-scripts/linhes_update.sh | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/abs/core-testing/linhes-scripts/PKGBUILD b/abs/core-testing/linhes-scripts/PKGBUILD index 1aaba84..924acfd 100644 --- a/abs/core-testing/linhes-scripts/PKGBUILD +++ b/abs/core-testing/linhes-scripts/PKGBUILD @@ -3,7 +3,7 @@ pkgname=linhes-scripts pkgver=1 -pkgrel=26 +pkgrel=27 pkgdesc="Various scripts that help to make LinHES, LinHES." arch=('i686' 'x86_64') license=('GPL2') 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 |