Merge "apt-conf: uninitialised variables fix"
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Override the default /etc/apt/apt.conf with $DIB_APT_CONF
|
# Override the default /etc/apt/apt.conf with $DIB_APT_CONF
|
||||||
|
|
||||||
set -eu
|
set -ue
|
||||||
|
|
||||||
# exit directly if DIB_APT_CONF is not defined properly
|
# exit directly if DIB_APT_CONF is not defined properly
|
||||||
if [ -z "$DIB_APT_CONF" ] ; then
|
if [ -z "${DIB_APT_CONF:-}" ] ; then
|
||||||
echo "DIB_APT_CONF is not set - no apt.conf will be copied in"
|
echo "DIB_APT_CONF is not set - no apt.conf will be copied in"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ ! -f "$DIB_APT_CONF" ] ; then
|
elif [ ! -f "$DIB_APT_CONF" ] ; then
|
||||||
|
Reference in New Issue
Block a user