aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-06-08 18:44:15 +0800
committerPetteri Räty <petsku@petteriraty.eu>2011-06-09 14:41:23 +0300
commitd7af7504cc91ab7cd5ca37abbe3fc3f5d7556acd (patch)
tree133b006fc9f1826e5c41f4c5acc99b3eb4e65c5c /utils
parentTest: add test for Portage functions (diff)
downloadlibbash-d7af7504cc91ab7cd5ca37abbe3fc3f5d7556acd.tar.gz
libbash-d7af7504cc91ab7cd5ca37abbe3fc3f5d7556acd.tar.bz2
libbash-d7af7504cc91ab7cd5ca37abbe3fc3f5d7556acd.zip
Utility: fix error counting
diff may return value that is greater than 1. Now this is fixed.
Diffstat (limited to 'utils')
-rwxr-xr-xutils/metadata_diff.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/metadata_diff.sh b/utils/metadata_diff.sh
index 46fd323..7a21855 100755
--- a/utils/metadata_diff.sh
+++ b/utils/metadata_diff.sh
@@ -27,7 +27,7 @@ do
do
filename=${path##*\/}
diff -u $cache_dir/$file $outputdir/$category/$filename > $outputdir/$category/$filename.diff 2>>$outputdir/error_output
- error_count+=$?
+ error_count+=$(($? != 0))
total_num+=1
done
fi