]> git.donarmstrong.com Git - wannabuild.git/commitdiff
ignore not existing files in ucat
authorAndreas Barth <aba@not.so.argh.org>
Wed, 23 Jun 2010 20:29:06 +0000 (20:29 +0000)
committerAndreas Barth <aba@not.so.argh.org>
Wed, 23 Jun 2010 20:29:06 +0000 (20:29 +0000)
triggers/common

index c2de5c2dc2bbd6c53d7fa9ebfef4cdd7ce3b3e66..71ce5cc3dd453a782b8292895dd7b6e17240d1d8 100644 (file)
@@ -141,6 +141,7 @@ trigger_wb_update_with_secondary() {
 
 ucat() {
     for FILE in $*; do
+      if [ -f ${FILE} ]; then
         case $FILE in
             *.gz)
                 zcat $FILE
@@ -152,5 +153,6 @@ ucat() {
                 cat $FILE
                 ;;
         esac
+      fi
     done
 }