Fix POSIX shell compatibility of delink script

Accidentally used == for a comparison instead of =, while only the
latter is in the standard.

Ref. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
This commit is contained in:
KeybadeBlox 2026-02-01 15:36:35 -05:00
parent ddc10a878c
commit a8b04d24d5

View file

@ -17,7 +17,7 @@ main() {
set -- $line set -- $line
set +f; IFS=$IFS_PREV set +f; IFS=$IFS_PREV
if [ "$2" == true ]; then # If object is marked for extraction if [ "$2" = true ]; then # If object is marked for extraction
object_name=$1 object_name=$1
printf '\n--- %s ---\n' "$object_name" printf '\n--- %s ---\n' "$object_name"