Sanitize SWUPDREPO variable when used

Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This commit is contained in:
Tudor Marcu
2016-07-25 10:52:29 -07:00
parent a2255a1e5d
commit ae75fa191c
+5
View File
@@ -42,6 +42,11 @@ if [ -z "${UPDATEDIR}" ]; then
UPDATEDIR="/var/lib/update/"
fi
# So we can call swupd_* with a sane path even if it's not / terminated
if [ ! -z "${SWUPDREPO}" ]; then
SWUPDREPO="${SWUPDREPO}/"
fi
SWUPDWEBDIR="${UPDATEDIR}/www"
MOM=${SWUPDWEBDIR}/${VER}/Manifest.MoM