Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
fixed build check
Browse files Browse the repository at this point in the history
  • Loading branch information
Okazakee committed Jan 26, 2023
1 parent 86eed4d commit b9a1e55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# wip md
# stuff
wip.md
mcserver/

# User-specific files
*.suo
Expand Down
6 changes: 2 additions & 4 deletions mcserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,8 @@ API_FETCH_JAR="serverjars.com/api/fetchJar/${SERVER_TYPE}/${SERVER_PROVIDER}/${M
case $SERVER_PROVIDER in
"paper") BUILD_FETCH_API="https://papermc.io/api/v2/projects/paper/versions/${MC_VERSION}/builds/${SERVER_BUILD}";;
"purpur") BUILD_FETCH_API="https://api.purpurmc.org/v2/purpur/${MC_VERSION}/${SERVER_BUILD}";;
*)
echo "\033[0;31mError: $SERVER_PROVIDER does not support custom builds number. Exiting... \033[0m" | tee server_cfg.txt
exit 1
;;
*) echo "Skipping build check because $SERVER_PROVIDER does not support custom builds number"
echo "";;
esac

#Server build handler
Expand Down

0 comments on commit b9a1e55

Please sign in to comment.