Fix argument check in labeler script

This commit is contained in:
Fallengirl 2025-05-10 11:04:11 +02:00 committed by GitHub
parent e43c574146
commit 03b8e08752
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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."