Upate menu

This commit is contained in:
MacRimi
2026-04-18 00:58:25 +02:00
parent 9446112081
commit 37c60cb82a
3 changed files with 58 additions and 101 deletions

View File

@@ -566,13 +566,6 @@ install_beta() {
cp "./menu" "$INSTALL_DIR/$MENU_SCRIPT"
cp "./version.txt" "$LOCAL_VERSION_FILE" 2>/dev/null || true
# Defensive: strip CRLF and reject a broken launcher before we declare success.
sed -i 's/\r$//' "$INSTALL_DIR/$MENU_SCRIPT" "$UTILS_FILE" 2>/dev/null || true
if ! bash -n "$INSTALL_DIR/$MENU_SCRIPT" 2>/dev/null; then
msg_error "Installed launcher failed syntax check. Installation aborted."
exit 1
fi
# Store beta version marker
if [ -f "$TEMP_DIR/beta_version.txt" ]; then
cp "$TEMP_DIR/beta_version.txt" "$BETA_VERSION_FILE"