init.sh: fix syntax error

line 184: [: ==: unary operator expected
This commit is contained in:
2025-03-29 20:57:42 +01:00
parent 1528ca7279
commit 0ecffb58dd

View File

@@ -181,7 +181,7 @@ case "$IMAGE_VERSION" in
esac
# Check machine type
if [ $(is_valid_machine "$MACHINE") == false ]; then
if [ "$(is_valid_machine "$MACHINE")" = "false" ]; then
my_echo "\033[31;1mNo valid machine defined.\033[0m"
my_echo "$HINT_MACHINES"
exit 1