...and properly quote variables. --- bin/signtarballs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/bin/signtarballs b/bin/signtarballs index 5dc236f..ae6ae80 100755 --- a/bin/signtarballs +++ b/bin/signtarballs @@ -2,10 +2,12 @@ test -d _releases_ && cd _releases_ || test -d ../_releases_ && cd ../_releases_ || exit -1 -find * -type f | egrep ".*(\.tar\.gz|\.exe|\.dmg)$" | while read tarball; do - test -f $tarball.md5 || md5sum $tarball > $tarball.md5 - test -f $tarball.sha1 || sha1sum $tarball > $tarball.sha1 - test -f $tarball.asc || gpg -a -b --sign $tarball +find * -type f "(" -name "*.tar.gz" -o -name "*.tar.xz" -o \ + -name "*.exe" -o -name "*.dmg" ")" | \ + while read tarball; do + test -f "$tarball.md5" || md5sum "$tarball" >"$tarball.md5" + test -f "$tarball.sha1" || sha1sum "$tarball" >"$tarball.sha1" + test -f "$tarball.asc" || gpg -a -b --sign "$tarball" done -- 1.8.2 _______________________________________________ X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev