Fixed the startup script (again again)
This commit is contained in:
@@ -6,7 +6,8 @@ CLEAN_REPO_URL=$(echo "${GIT_REPO_URL}" | sed 's|^https://||')
|
|||||||
|
|
||||||
if [ -d .git ]; then
|
if [ -d .git ]; then
|
||||||
echo "Pulling latest changes from the repository..."
|
echo "Pulling latest changes from the repository..."
|
||||||
git pull "https://${GIT_USERNAME}:${GIT_PAT}@${CLEAN_REPO_URL}" "${GIT_BRANCH}" || true
|
git fetch "https://${GIT_USERNAME}:${GIT_PAT}@${CLEAN_REPO_URL}" "${GIT_BRANCH}"
|
||||||
|
git reset --hard FETCH_HEAD
|
||||||
fi
|
fi
|
||||||
# Constants
|
# Constants
|
||||||
EXTENSIONS="yml json conf properties" # Space-separated list of extensions
|
EXTENSIONS="yml json conf properties" # Space-separated list of extensions
|
||||||
|
|||||||
Reference in New Issue
Block a user