X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=buildd%2Fupload_isos.sh;h=25d3453c982c38ab1bc35086eb94db117b9d7d74;hp=02630f550a23c99206b3aa3f7ec744f0e1571356;hb=68b9fb146e8702b2f6a790e3d9486ca36f0d9f76;hpb=d82c19690884d3a645cc13aefd3de0a7fc8f4d12 diff --git a/buildd/upload_isos.sh b/buildd/upload_isos.sh index 02630f5..25d3453 100755 --- a/buildd/upload_isos.sh +++ b/buildd/upload_isos.sh @@ -4,18 +4,20 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Mon Oct 22 19:11:33 CEST 2007 [mika] +# Latest change: Mon Oct 22 19:50:36 CEST 2007 [mika] ################################################################################ -. /usr/share/grml-live/buildd/functions.sh || exit 1 +. /etc/grml/grml-buildd.conf || exit 1 [ -n "$RSYNC_MIRROR" ] || exit 2 -cd $ISO_DIR || exit 3 +[ -n "$ISO_DIR" ] || exit 3 + +cd $ISO_DIR || exit 4 umask 002 for file in *.iso ; do - [ -f "${file}.md5" ] || md5sum $file > ${file}.md5 - chmod 664 $file - chmod 664 ${file}.md5 + [ -f "${file}.md5" ] || md5sum "$file" > "${file}".md5 + chmod 664 "$file" + chmod 664 "${file}".md5 done rsync --partial -az --quiet $ISO_DIR/* $RSYNC_MIRROR