Only try to remove .mod if it exists

This commit is contained in:
Ben Peddell 2016-02-21 10:40:06 +10:00
parent 7014502ee1
commit fe11e77f0f

View File

@ -1350,7 +1350,9 @@ doExtractMod(){
modname="$(curl -s "http://steamcommunity.com/sharedfiles/filedetails/?id=${modid}" | sed -n 's|^.*<div class="workshopItemTitle">\([^<]*\)</div>.*|\1|p')"
rm "${moddestdir}/.mod"
if [ -f "${moddestdir}/.mod" ]; then
rm "${moddestdir}/.mod"
fi
perl -e '
my $data;