Merge "Fix unbound variables in apt-{preferences,sources}"
This commit is contained in:
commit
d3324cbb69
@ -21,7 +21,7 @@ set -eu
|
||||
set -o pipefail
|
||||
|
||||
# exit directly if DIB_DPKG_MANIFEST is not defined properly
|
||||
if [ -z "$DIB_DPKG_MANIFEST" ]; then
|
||||
if [ -z "${DIB_DPKG_MANIFEST:-}" ]; then
|
||||
echo "DIB_DPKG_MANIFEST must be set to the location of a manifest file you wish to use"
|
||||
exit 0
|
||||
elif [ ! -f "$DIB_DPKG_MANIFEST" -o ! -s "$DIB_DPKG_MANIFEST" ]; then
|
||||
|
@ -8,9 +8,9 @@ set -eu
|
||||
set -o pipefail
|
||||
|
||||
# exit directly if DIB_APT_SOURCES is not defined properly
|
||||
if [ -z "$DIB_APT_SOURCES" ] ; then
|
||||
if [ -z "${DIB_APT_SOURCES:-}" ] ; then
|
||||
echo "DIB_APT_SOURCES must be set to the location of a sources.list file you wish to use"
|
||||
exit 1
|
||||
exit 0
|
||||
elif [ ! -f "$DIB_APT_SOURCES" -o ! -s "$DIB_APT_SOURCES" ] ; then
|
||||
echo "$DIB_APT_SOURCES is not a valid sources.list file."
|
||||
echo "You should assign proper sources.list file in DIB_APT_SOURCES"
|
||||
|
Loading…
Reference in New Issue
Block a user