Skip to content

Commit 1b19d62

Browse files
fix(forgejo-runner): revert TTY check, gate on mode being explicitly set
mode is only set when the user is automating (e.g. mode=default with var_* overrides). The default bash -c curl invocation leaves mode empty and shows the whiptail menu, so this check won't affect interactive use.
1 parent 5b2a646 commit 1b19d62

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ct/forgejo-runner.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ function update_script() {
6363
}
6464

6565
# Fail early if running unattended without required values
66-
# Only check when there's no TTY (truly non-interactive, e.g. piped or scripted)
67-
if [[ -n "${mode:-}" && ! -t 0 ]]; then
66+
# mode is only set when the user explicitly passes it (automating);
67+
# bare "bash -c $(curl ...)" leaves mode empty and shows the whiptail menu
68+
if [[ -n "${mode:-}" ]]; then
6869
if [[ -z "${var_forgejo_instance:-}" ]]; then
6970
msg_error "var_forgejo_instance is required for unattended installs."
7071
exit 1

0 commit comments

Comments
 (0)