aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2012-07-29 21:22:34 +0000
committerNicolas Vigier <boklm@mageia.org>2012-07-29 21:22:34 +0000
commit2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7 (patch)
tree2c19a3e165e4993277be001d4bd7defe967f02a3 /modules/buildsystem/templates
parent01bf98a5909a1d373c3e1d3e0d30f9d72dc835af (diff)
downloadpuppet-2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7.tar
puppet-2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7.tar.gz
puppet-2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7.tar.bz2
puppet-2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7.tar.xz
puppet-2fa22f08cb160ceb67eff4e4ac9baa6b61cea1f7.zip
check if sha1sum is not empty
Diffstat (limited to 'modules/buildsystem/templates')
-rwxr-xr-xmodules/buildsystem/templates/binrepo/upload-bin1
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