This PR removes the 'x-hack' from the cli functions in the Armbian Linux Build Framework. The 'x-hack' is a common practice in shell scripting to prevent errors when a variable is unset. However, in modern bash scripting, this is unnecessary and can be replaced with a direct comparison.
Summary of Changes
In lib/functions/cli/entrypoint.sh, replaced all instances of the 'x-hack' with a direct comparison.
In lib/functions/cli/commands.sh, replaced all instances of the 'x-hack' with a direct comparison.
This change improves the readability and maintainability of the code by removing unnecessary syntax and aligning with modern bash scripting practices.
Fixes #22.
🎉 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 removes the 'x-hack' from the cli functions in the Armbian Linux Build Framework. The 'x-hack' is a common practice in shell scripting to prevent errors when a variable is unset. However, in modern bash scripting, this is unnecessary and can be replaced with a direct comparison.
Summary of Changes
lib/functions/cli/entrypoint.sh
, replaced all instances of the 'x-hack' with a direct comparison.lib/functions/cli/commands.sh
, replaced all instances of the 'x-hack' with a direct comparison.This change improves the readability and maintainability of the code by removing unnecessary syntax and aligning with modern bash scripting practices.
Fixes #22.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: