From 03b8e08752e77742374b367a3947d987b81797fa Mon Sep 17 00:00:00 2001 From: Fallengirl <155266340+Fallengirl@users.noreply.github.com> Date: Sat, 10 May 2025 11:04:11 +0200 Subject: [PATCH] Fix argument check in labeler script --- contrib/gen_label_config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gen_label_config.sh b/contrib/gen_label_config.sh index 11536bbf4..85ad9a93f 100755 --- a/contrib/gen_label_config.sh +++ b/contrib/gen_label_config.sh @@ -10,7 +10,7 @@ config=.github/labeler.yml # Define a default value for SCAN_DIR if not set : "${SCAN_DIR:=.}" -if [ "${1:-default}" '!=' "--force" ] && ! git diff --exit-code "$config"; +if [ "${1:-default}" != "--force" ] && ! git diff --exit-code "$config"; then echo "Error: $config is not committed." echo "Refusing to overwrite it to prevent disaster."