mirror of
https://github.com/clearlinux/mixer-tools.git
synced 2026-09-06 13:41:46 +00:00
Sanitize SWUPDREPO variable when used
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user