mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-12 11:38:50 +02:00
Cronmaster: fix unexpected EOF in update_cronmaster script (#14420)
The heredoc used <<EOF (unquoted), causing the \ inside it to be executed during installation. This embedded the entire cronmaster.sh source (~250 lines) into the update script, which contained backtick-style constructs that caused 'unexpected EOF while looking for matching backtick' at line 44 when the update script was later run. Use <<'EOF' so the literal \ text is written to the file.
This commit is contained in:
committed by
GitHub
parent
2fddbd9c67
commit
b15e84e2ba
@@ -147,7 +147,7 @@ EOF
|
||||
# Create update script
|
||||
msg_info "Creating update script"
|
||||
ensure_usr_local_bin_persist
|
||||
cat <<EOF >/usr/local/bin/update_cronmaster
|
||||
cat <<'EOF' >/usr/local/bin/update_cronmaster
|
||||
#!/usr/bin/env bash
|
||||
# CronMaster Update Script
|
||||
type=update bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/cronmaster.sh)"
|
||||
|
||||
Reference in New Issue
Block a user