Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deploy script is not interactive #8668

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Conversation

FelixMalfait
Copy link
Member

The 1-click install did not ask questions anymore, let's try removing the S flag

@FelixMalfait FelixMalfait merged commit 94a49e5 into main Nov 22, 2024
12 checks passed
@FelixMalfait FelixMalfait deleted the interactive-1-click-install branch November 22, 2024 09:09
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR modifies the 1-click installation script to enable interactive mode by removing the -s (silent) flag from bash commands, though potential inconsistencies exist.

  • Inconsistent flag usage: -sL remains in curl command while -s is removed from bash in /packages/twenty-docker/scripts/1-click.sh
  • Script may require verification that underlying install scripts (install.sh) support interactive prompts
  • Version check logic in 1-click.sh affects both pre and post v0.32.4 installation paths, requiring testing for both scenarios

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

@@ -6,7 +6,7 @@ target_version="0.32.4"

# We moved the install script to a different location in v0.32.4
if [[ -n "$BRANCH" ]] || [[ "$(printf '%s\n' "$target_version" "$version_num" | sort -V | head -n1)" != "$version_num" ]]; then
curl -sL "https://raw.githubusercontent.com/twentyhq/twenty/$pull_branch/packages/twenty-docker/scripts/install.sh" | bash -s -- "$VERSION" "$BRANCH"
curl -sL "https://raw.githubusercontent.com/twentyhq/twenty/$pull_branch/packages/twenty-docker/scripts/install.sh" | bash -- "$VERSION" "$BRANCH"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Inconsistent use of silent flags - curl still uses -sL while bash has silent mode removed. Either keep both silent or make both interactive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant