do not fail with empty $APT_PROXY
[grml-live.git] / 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