Author: jw Date: 2006-06-01 20:20:33 +0200 (Thu, 01 Jun 2006) New Revision: 1468 Modified: tools/scripts/check_urls Log: check_urls: switch stderr/stdout policy Modified: tools/scripts/check_urls =================================================================== --- tools/scripts/check_urls 2006-06-01 10:28:59 UTC (rev 1467) +++ tools/scripts/check_urls 2006-06-01 18:20:33 UTC (rev 1468) @@ -9,12 +9,16 @@ failed=0 print_err() { + echo "$@" +} + +print_msg() { echo "$@" 1>&2 } check_port() { if [ ! -f $f/Pkgfile ]; then - echo " $f/Pkgfile not found" > /dev/stderr + print_err " $f/Pkgfile not found" return -1 fi @@ -38,8 +42,8 @@ } for f in $@; do - echo "* Checking $f" + print_msg "* Checking $f" check_port $f done -echo "$(basename $0): Checked $checked urls, $failed failures" \ No newline at end of file +print_msg "$(basename $0): Checked $checked urls, $failed failures"
participants (1)
-
crux@crux.nu