From 91ecf5b6bb572feb228072d766d37a7a688390e3 Mon Sep 17 00:00:00 2001 From: dakkar Date: Mon, 17 Aug 2009 15:48:07 +0200 Subject: signal errors --- doit.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doit.sh') diff --git a/doit.sh b/doit.sh index b94d558..a0ba6a5 100755 --- a/doit.sh +++ b/doit.sh @@ -11,5 +11,8 @@ $command -s src/ -d output -I templates/ "$@" if [[ $! -eq 0 && -z "$*" ]]; then rsync -r output/ /var/www/localhost/htdocs/ rsync -r additions/ /var/www/localhost/htdocs/ +else + echo "Something wrong: $!" >2 fi + -- cgit v1.2.3