Fixed REMOVE_OLD_MODS with SPIGET_RESOURCES

#834
This commit is contained in:
Geoff Bourne 2021-05-15 12:39:48 -05:00
parent e5bee8e79b
commit cc204c297f

View file

@ -177,6 +177,6 @@ eula=${EULA,,}
function removeOldMods {
if [ -d "$1" ]; then
find "$1" -mindepth 1 -maxdepth ${REMOVE_OLD_MODS_DEPTH:-16} -wholename "${REMOVE_OLD_MODS_INCLUDE:-*}" -not -wholename "${REMOVE_OLD_MODS_EXCLUDE}" -delete
find "$1" -mindepth 1 -maxdepth ${REMOVE_OLD_MODS_DEPTH:-16} -wholename "${REMOVE_OLD_MODS_INCLUDE:-*}" -not -wholename "${REMOVE_OLD_MODS_EXCLUDE:-}" -delete
fi
}