From: Andreas Barth Date: Wed, 23 Jun 2010 20:29:06 +0000 (+0000) Subject: ignore not existing files in ucat X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=commitdiff_plain;h=6e1ebc1ea9656fbe7b7caa3a79a1035820421e76 ignore not existing files in ucat --- diff --git a/triggers/common b/triggers/common index c2de5c2..71ce5cc 100644 --- a/triggers/common +++ b/triggers/common @@ -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 }