mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-04 22:22:09 +00:00
fix(graalvm): broken variable usage
This commit is contained in:
1 file changed
+7
-3
@@ -160,7 +160,8 @@ perform_git_clone() {
|
||||
}
|
||||
|
||||
# Auto update server from git.
|
||||
if [ "${GIT_ENABLED}" == "true" ] || [ "${GIT_ENABLED}" == "1" ]; then
|
||||
perform_git_logic() {
|
||||
if [ "${GIT_ENABLED}" == "true" ] || [ "${GIT_ENABLED}" == "1" ]; then
|
||||
echo "Git auto-update is enabled"
|
||||
echo ""
|
||||
|
||||
@@ -195,7 +196,7 @@ if [ "${GIT_ENABLED}" == "true" ] || [ "${GIT_ENABLED}" == "1" ]; then
|
||||
echo "Found existing git repository"
|
||||
|
||||
# Get current remote URL
|
||||
local 'current_remote'=$(git config --get remote.origin.url 2>/dev/null || echo "")
|
||||
local current_remote=$(git config --get remote.origin.url 2>/dev/null || echo "")
|
||||
|
||||
if [ -n "$current_remote" ]; then
|
||||
echo "Current remote: $(normalize_repo_url "$current_remote" | sed 's|https://github.com/||' | sed 's|\.git$||')"
|
||||
@@ -242,7 +243,10 @@ if [ "${GIT_ENABLED}" == "true" ] || [ "${GIT_ENABLED}" == "1" ]; then
|
||||
|
||||
# Post git stuff
|
||||
cd /home/container
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
perform_git_logic
|
||||
|
||||
# Print Java version
|
||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mjava -version\n"
|
||||
|
||||
Reference in new issue
Block a user