chiark / gitweb /
Infra: get-dm-txt: Break out $certargs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Jun 2015 23:46:57 +0000 (00:46 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Jun 2015 23:46:57 +0000 (00:46 +0100)
infra/get-dm-txt

index 7902c1c..df715d0 100755 (executable)
@@ -8,8 +8,10 @@ server=ftp-master.debian.org
 path=$file
 cert=/etc/ssl/certs/$server.pem
 
+certargs="--ca-certificate=$cert --ca-directory=/dev/enoent"
+
 with-lock-ex -f $file.lock sh -c "
-       if ! wget --ca-certificate=$cert --ca-directory=/dev/enoent \
+       if ! wget $certargs \
                -O $file.new https://$server/$path >$file.stderr 2>&1; then
                cat $file.stderr >&2
                exit 127