Foxboron / sbctl

:computer: :lock: :key: Secure Boot key manager
MIT License
1.35k stars 71 forks source link

nit(91-sbctl.install): consistent syntax for tests #310

Closed MithicSpirit closed 1 month ago

MithicSpirit commented 1 month ago

Unifies usage of testing commands like [], test, and [[]] to just use [] everywhere. This also improves compatibility, as [[]] is not available in POSIX sh.

N.B.: the script uses #!/bin/sh, so using [[]] as before can cause crashes if the system has a symlink sh -> dash. This could also be fixed by changing the shebang to use bash instead.

Foxboron commented 1 month ago

Thanks!