kevinlu1248 / armbian-build

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

Replace 'x-hack' with modern variable checking #12

Closed sweep-nightly[bot] closed 1 year ago

sweep-nightly[bot] commented 1 year ago

Description

This PR replaces all instances of the 'x-hack' in the codebase with a more modern and reliable approach for checking variable values. The 'x-hack' is an outdated shell scripting practice that was used to ensure compatibility across different shells and systems. It involves adding an 'x' before a variable and its value in a conditional statement, for example, [ "x${var}" = "xval" ] or [ x$var = xval ]. This practice is now considered obsolete as modern shells have evolved to be more reliable.

The changes were made in the following files:

In each file, instances of the 'x-hack' were replaced with [ "${var}" = "val" ].

Summary of Changes

Fixes #4.


🎉 Latest improvements to Sweep:


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