Use variables

This commit is contained in:
TheiLLeniumStudios
2023-02-06 10:30:19 +00:00
parent 77953caa49
commit d8dce47117
2 changed files with 14 additions and 1 deletions
+13 -1
View File
@@ -1,5 +1,18 @@
#!/bin/sh -l
RESTART_INDIVIDUAL_RESOURCES=$1
if [ "$RESTART_INDIVIDUAL_RESOURCES" = true ] ; then
echo "Will restart individual resources"
else
echo "Will restart the whole server"
fi
SERVER_IP=$2
SERVER_PORT=$3
RCON_PASSWORD=$4
RESOURCES_FOLDER=$5
echo "$1"
echo "$2"
echo "$3"
@@ -17,7 +30,6 @@ else
# Push
git fetch origin ${GITHUB_EVENT_BEFORE} --depth=1
export DIFF=$( git diff --name-only ${GITHUB_EVENT_BEFORE} ${GITHUB_SHA} )
echo $DIFF
echo "Diff between ${GITHUB_EVENT_BEFORE} and ${GITHUB_SHA}"
fi