kevinlu1248 / armbian-build

The Armbian Linux Build Framework under Kreyren's Management
GNU General Public License v2.0
0 stars 0 forks source link

Remove x-hack from shell scripts #100

Closed sweep-nightly[bot] closed 10 months ago

sweep-nightly[bot] commented 10 months ago

Description

This PR removes the outdated 'x-hack' practice from all shell scripts in the codebase. The 'x-hack' was used to prevent errors when comparing variables that could potentially be undefined or empty. However, modern shells handle these cases more gracefully, making the 'x-hack' unnecessary.

The 'x-hack' instances were identified and replaced with a direct comparison. For example, '[ x$var = xval ]' has been replaced with '[ "$var" = "val" ]'.

Summary of Changes

All modified scripts have been tested to ensure that they still function as expected without the 'x-hack'.

Fixes #4.


🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can: