From 2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 29 Jul 2012 21:22:34 +0000 Subject: check if sha1sum is not empty --- modules/buildsystem/templates/binrepo/upload-bin | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/buildsystem/templates') diff --git a/modules/buildsystem/templates/binrepo/upload-bin b/modules/buildsystem/templates/binrepo/upload-bin index 4cb0459d..f90130f3 100755 --- a/modules/buildsystem/templates/binrepo/upload-bin +++ b/modules/buildsystem/templates/binrepo/upload-bin @@ -13,6 +13,7 @@ comment="$2" /bin/cat > "$tmpfile" sha1sum=$(/usr/bin/sha1sum "$tmpfile" | sed 's/ .*$//') +test -n "$sha1sum" if [ -f "$binrepodir/$sha1sum" ] then echo "File $sha1sum already exists." >&2 -- cgit v1.2.1