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 #18

Open sweep-nightly[bot] opened 11 months ago

sweep-nightly[bot] commented 11 months ago

Description

This PR replaces all instances of the outdated 'x-hack' in the codebase with a more modern and reliable approach for checking variable values. The 'x-hack' is a shell/bash conditional that uses the letter 'x' followed by a variable declaration and checks against the same letter followed by a value. This practice was used to ensure compatibility across different shells and systems, but it is now considered obsolete due to the evolution of modern shells.

The following changes were made in this PR:

Summary

The 'x-hack' was replaced with a more modern approach for checking variable values, specifically [ "${var}" = "val" ]. This change improves the reliability of the code and ensures compatibility with modern shells.

Fixes #4.


šŸŽ‰ Latest improvements to Sweep:


šŸ’” To get Sweep to edit this pull request, you can: