Add warning for missing .gtnh-version file when using SKIP_GTNH_UPDATE_CHECK (#4230)

This commit is contained in:
Leon Kampwerth
2026-08-13 14:48:48 -05:00
committed by GitHub
parent 218826cba0
commit 2826f51f5f
+3
View File
@@ -312,6 +312,9 @@ function handleGTNH() {
fi
else
log "SKIP_GTNH_UPDATE_CHECK=$SKIP_GTNH_UPDATE_CHECK ... Skipping GTNH Update/Install"
if [[ ! -f /data/.gtnh-version ]]; then
logWarning "No .gtnh-version file detected! There might not be a valid GTNH server installation in /data. Please ensure that the server files are present or set SKIP_GTNH_UPDATE_CHECK=false to allow the script to download and install the server files."
fi
fi
}