This PR replaces the outdated 'x-hack' shell scripting practice with a more modern and reliable approach. The 'x-hack' was used to ensure compatibility across different shells and systems in the past. However, modern shells have evolved to be more reliable, making this practice obsolete. The 'x-hack' was present in several files in the codebase and has been replaced in this PR.
Summary of Changes
Replaced all instances of the 'x-hack' in the following files:
Each instance of the 'x-hack' was replaced with a more modern and reliable approach. For example, [ "x$var" = "xval" ] was replaced with [ "$var" = "val" ].
These changes ensure that the scripts are more readable and maintainable, while still being compatible with modern shells.
Fixes #4.
🎉 Latest improvements to Sweep:
Getting Sweep to run linters before committing! Check out Sweep Sandbox Configs to set it up.
Added support for self-hosting! Check out Self-hosting Sweep to get started.
[Self Hosting] Multiple options to compute vector embeddings, configure your .env file using VECTOR_EMBEDDING_SOURCE
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This PR replaces the outdated 'x-hack' shell scripting practice with a more modern and reliable approach. The 'x-hack' was used to ensure compatibility across different shells and systems in the past. However, modern shells have evolved to be more reliable, making this practice obsolete. The 'x-hack' was present in several files in the codebase and has been replaced in this PR.
Summary of Changes
Each instance of the 'x-hack' was replaced with a more modern and reliable approach. For example,
[ "x$var" = "xval" ]
was replaced with[ "$var" = "val" ]
.These changes ensure that the scripts are more readable and maintainable, while still being compatible with modern shells.
Fixes #4.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: