do not fail with empty $APT_PROXY
authorMichael Prokop <mika@grml.org>
Fri, 25 Nov 2011 19:23:52 +0000 (20:23 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 25 Nov 2011 19:24:34 +0000 (20:24 +0100)
etc/grml/fai/config/hooks/updatebase.GRMLBASE

index 82a2fb9..930ecbd 100755 (executable)
@@ -18,7 +18,7 @@ HOSTNAME=''
 [ -n "$HOSTNAME" ] || HOSTNAME=grml
 echo "$HOSTNAME" > $target/etc/hostname
 
-if [ -n "$APT_PROXY" ] ; then
+if [ -n "${APT_PROXY:-}" ] ; then
   cat > $target/etc/apt/apt.conf.d/90grml-apt-proxy.conf <<EOF
 Acquire::http { Proxy "$APT_PROXY"; };
 EOF