-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build 🔧 Improve logging with colors!
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [ -z "$GAME" ]; then | ||
echo "Error: The GAME environment variable is not set, please refer to the README for instructions: https://github.com/JamesIves/hlds-docker" | ||
echo -e "\e[31mError: The GAME environment variable is not set, please refer to the README for instructions: https://github.com/JamesIves/hlds-docker\e[0m" | ||
exit 1 | ||
fi | ||
|
||
if [[ "$@" != *"+map"* ]]; then | ||
echo "Warning: No +map specified in the command. Server will start but may not be joinable." | ||
if echo "$@" | grep -qv "+map"; then | ||
echo -e "\e[33mWarning: No +map specified in the command. Server will start but may not be joinable.\e[0m" | ||
fi | ||
|
||
if [ -d /temp/hlds ] | ||
then | ||
rsync --chown=steam:steam /temp/hlds/* /opt/steam/hlds/$GAME | ||
fi | ||
|
||
echo Starting Half-Life Dedicated Server... | ||
echo -e "\e[32mStarting Half-Life Dedicated Server...\e[0m" | ||
|
||
./hlds_run "-game $GAME $@" |