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 shebang so shell scripts work on more systems #955

Merged

Conversation

MichaelBergquistSuarez
Copy link
Contributor

@MichaelBergquistSuarez MichaelBergquistSuarez commented Jul 3, 2023

Description

In general, #!/usr/bin/env bash is considered better practice because it's more portable.

Bash is not always located at /bin/bash.

This will make the scripts work on systems, like the Linux dist NixOS

Motivation and Context

The readme instructions does not work on some systems. Like mine (NixOS).

How has this been tested?

By running ./setup.sh as mentioned above

in

nixos-version --verbose

22.11.20230629.c6643a9 (Raccoon)

Types of changes

Changes visible to users:

  • Bug fix (prefix: fix - non-breaking change which fixes an issue)
  • New feature (prefix: feat - non-breaking change which adds functionality)
  • Breaking change (prefix: feat!! or fix!! - fix or feature that would cause existing functionality to not work as expected)
  • Documentation (prefix: docs - improvements to any documentation content for users)
  • Homepage (prefix: page - improvements to the Homepage #{HOMEPAGE} should lead to the place where one could actually change the homepage
  • Contributing Guidelines (prefix: contrib - any improvements to documentation content for contributors - see Contributing

Internal changes:

  • Refactor (prefix: refactor - non-breaking change which only improves the design or structure of existing code, and making no changes to its external behaviour)
  • Tests (prefix: test - additions and improvements to unit tests and the smoke tests)
  • Infrastructure (prefix: chore - examples include GitHub Actions, issue templates)

Checklist

  • My code follows the code style of this project and passes npm run lint.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. # {DOCUMENTATION} <------- this should lead to the doc that could be changed/ didnt find it
  • My change has adequate Unit Test coverage.

Terms

In general, `#!/usr/bin/env bash` is considered better practice because it's more portable.
Bash is not always located at /bin/bash.
This will make the scripts work on systems, like NixOS
@vercel
Copy link

vercel bot commented Jul 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2023 3:50pm

@vercel
Copy link

vercel bot commented Jul 3, 2023

@MichaelBergquistSuarez is attempting to deploy a commit to the reworkd Team on Vercel.

A member of the Team first needs to authorize it.

@vercel vercel bot temporarily deployed to Preview – docs July 3, 2023 15:50 Inactive
@ergomake
Copy link

ergomake bot commented Jul 3, 2023

Hi 👋

Here's a preview environment 🚀

https://next-reworkd-agentgpt-955.env.ergomake.link

Environment Summary 📑

Container Source URL
next Dockerfile https://next-reworkd-agentgpt-955.env.ergomake.link
docs Dockerfile https://docs-reworkd-agentgpt-955.env.ergomake.link
platform Dockerfile https://platform-reworkd-agentgpt-955.env.ergomake.link
db Dockerfile [not exposed - internal service]
weaviate semitechnologies/weaviate:1.19.6 https://weaviate-reworkd-agentgpt-955.env.ergomake.link

Questions? Comments? Suggestions? Join Discord.

Click here to disable Ergomake.

@asim-shrestha
Copy link
Contributor

Thanks @MichaelBergquistSuarez!

@asim-shrestha asim-shrestha merged commit df76d83 into reworkd:main Jul 3, 2023
3 of 4 checks passed
@MichaelBergquistSuarez MichaelBergquistSuarez deleted the fix-shebang-support branch July 4, 2023 17:44
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.

None yet

2 participants