Skip to content

Commit

Permalink
Merge pull request #185 from piraxis/master
Browse files Browse the repository at this point in the history
fix: CPM install script to work with the latest releases
  • Loading branch information
vinanrra authored Jul 11, 2023
2 parents 0188dc0 + b05b70f commit bdfe39e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/Mods/cpm.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

MODS_FOLDER=/home/sdtdserver/serverfiles/Mods
VERSION=
VERSION=${VERSION,,}

# Change DL_LINK depending on 7 days to die branch version
if [ "${VERSION}" == 'stable' ] || [ "${VERSION}" == 'public' ]; then
DL_LINK=$(curl -L -s https://api.github.com/repos/Prisma501/CSMM-Patrons-Mod/releases/latest | grep -o -E "https://github.com/Prisma501/CSMM-Patrons-Mod/releases/download(.*).zip")
DL_LINK=$(curl -L -s https://api.github.com/repos/Prisma501/CSMM-Patrons-Mod/releases/latest | grep -o -E "https://github.com/Prisma501/CSMM-Patrons-Mod/releases/download(.*).zip" | grep -v Naiwazi)
elif [ "${VERSION}" == 'latest_experimental' ]; then
DL_LINK="http://illy.bz/fi/7dtd/server_fixes.tar.gz"
elif [ "${VERSION}" == 'alpha20.7' ] || [ "${VERSION}" == 'alpha20.7' ]; then
Expand Down

0 comments on commit bdfe39e

Please sign in to comment.