Merge "Fix unbound variables in apt-{preferences,sources}"

This commit is contained in:
Jenkins 2015-03-04 02:49:34 +00:00 committed by Gerrit Code Review
commit d3324cbb69
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"