diff options
author | Nicolas Vigier <boklm@mageia.org> | 2012-07-29 21:22:34 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2012-07-29 21:22:34 +0000 |
commit | 2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7 (patch) | |
tree | 2c19a3e165e4993277be001d4bd7defe967f02a3 | |
parent | 01bf98a5909a1d373c3e1d3e0d30f9d72dc835af (diff) | |
download | puppet-2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7.tar puppet-2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7.tar.gz puppet-2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7.tar.bz2 puppet-2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7.tar.xz puppet-2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7.zip |
check if sha1sum is not empty
-rwxr-xr-x | modules/buildsystem/templates/binrepo/upload-bin | 1 |
1 files changed, 1 insertions, 0 deletions
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 |