Add --skip-workshop-dir option to checkmodupdate

This commit is contained in:
Ben Peddell 2022-08-09 17:35:12 +10:00
parent 34eb58fb80
commit 4f718d20d0

View File

@ -2331,15 +2331,19 @@ checkForModUpdate(){
if [[ " $* " =~ " --revstatus " ]]; then
revstatcode=1
fi
if [ ! -d "${steamworkshopdir}" ]; then
echo "Error: ${steamworkshopdir} does not exist"
if [ -n "$revstatcode" ]; then return 4; else return 0; fi
fi
if [ ! -f "${steamworkshopdir}/appworkshop_${mod_appid}.acf" ]; then
echo "Error: appworkshop_${mod_appid}.acf not found at ${steamworkshopdir}"
if [[ " $* " =~ " --skip-workshop-dir " ]]; then
cancheckmodavail=
else
if [ ! -d "${steamworkshopdir}" ]; then
echo "Error: ${steamworkshopdir} does not exist"
if [ -n "$revstatcode" ]; then return 4; else return 0; fi
fi
if [ ! -f "${steamworkshopdir}/appworkshop_${mod_appid}.acf" ]; then
echo "Error: appworkshop_${mod_appid}.acf not found at ${steamworkshopdir}"
cancheckmodavail=
fi
fi
for modid in $(getModIds); do