diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-19 16:56:47 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-19 16:56:47 (GMT) |
commit | 9801d23371a83fc8594bb0cae16b4f9f232f28c0 (patch) | |
tree | 5b216450689483c21ab50afb5e424c091bac8363 /abs | |
parent | 4e05d1135aa08edf7184f88ab39b564f3351414a (diff) | |
download | linhes_pkgbuild-9801d23371a83fc8594bb0cae16b4f9f232f28c0.zip linhes_pkgbuild-9801d23371a83fc8594bb0cae16b4f9f232f28c0.tar.gz linhes_pkgbuild-9801d23371a83fc8594bb0cae16b4f9f232f28c0.tar.bz2 |
linhes-script:better presentation of files to be upgraded.
Diffstat (limited to 'abs')
-rw-r--r-- | abs/core-testing/linhes-scripts/PKGBUILD | 2 | ||||
-rw-r--r-- | abs/core-testing/linhes-scripts/linhes_update3.sh | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/abs/core-testing/linhes-scripts/PKGBUILD b/abs/core-testing/linhes-scripts/PKGBUILD index 99f70dd..1cc569a 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=33 +pkgrel=34 pkgdesc="Various scripts that help to make LinHES, LinHES." arch=('i686' 'x86_64') license=('GPL2') diff --git a/abs/core-testing/linhes-scripts/linhes_update3.sh b/abs/core-testing/linhes-scripts/linhes_update3.sh index 82722b8..56e8612 100644 --- a/abs/core-testing/linhes-scripts/linhes_update3.sh +++ b/abs/core-testing/linhes-scripts/linhes_update3.sh @@ -1,9 +1,10 @@ #!/bin/bash -if [ -s /tmp/to_be_upgraded ] +sudo killall osd_cat +cat /tmp/to_be_upgraded | sed 's/ /\n/g' | sed '/^$/d' | grep - > /tmp/to_be_upgraded2 +COUNT=$(wc -l /tmp/to_be_upgraded2 | awk '{print $1}') +if [ $COUNT -lt 20 ] then - sudo killall osd_cat - cat /tmp/to_be_upgraded | osd_cat -p top -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 1 -A centre -l 20 -w + cat /tmp/to_be_upgraded2 | osd_cat -p top -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 12 -A centre -l 20 else - sudo killall osd_cat - echo -e "No updates at this time." | osd_cat -p middle -s 5 -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 5 -A centre & + cat /tmp/to_be_upgraded2 | osd_cat -p top -f"-adobe-courier-bold-*-*-*-34-*-*-*-*-*" -d 1 -A centre -l 20 -w fi |