Skip to content

Commit

Permalink
fix: Abort BepInEx installation wtih Alpha21 or above
Browse files Browse the repository at this point in the history
  • Loading branch information
vinanrra committed Dec 12, 2023
1 parent 560c650 commit 4b90e2d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/Mods/bepinex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ SERVERFILES_FOLDER="${BASEPATH}/serverfiles"
BEPINEX_SH="${SERVERFILES_FOLDER}/run_bepinex.sh"
LSGMSDTDSERVERCFG="${BASEPATH}/lgsm/config-lgsm/sdtdserver/sdtdserver.cfg"

# Change DL_LINK depending on 7 days to die branch version
if [ "${VERSION}" == 'stable' ] || [ "${VERSION}" == 'public' ]; then
echo "BepInEx isn't support with Alpha 21 or above"
exit
elif [ "${VERSION}" == 'latest_experimental' ]; then
echo "BepInEx isn't support with Alpha 21 or above"
exit
elif [ "${VERSION::7}" == 'alpha21' ]; then
echo "BepInEx isn't support with Alpha 21 or above"
exit
fi

# Get latest version
DL_LINK=$(curl -L -s https://api.github.com/repos/BepInEx/BepInEx/releases/latest | grep -o -E "https://github.com/BepInEx/BepInEx/releases/download/(.*)/BepInEx_unix_(.*).zip")

Expand Down

0 comments on commit 4b90e2d

Please sign in to comment.