Merge rust-bitcoin/rust-bitcoin#4483: Fix argument check in labeler script
03b8e08752
Fix argument check in labeler script (Fallengirl)
Pull request description:
### Description
Removed unnecessary quotes around the `!=` operator in the Bash test expression, so the `--force` flag is now evaluated correctly instead of always passing.
ACKs for top commit:
apoelstra:
ACK 03b8e08752e77742374b367a3947d987b81797fa; successfully ran local tests
Tree-SHA512: 479763d384a2ee06dc2a2fdd4cf3d35d1731ffccdee8888104bf0fd4bc778ee493d2e4e56f33c544c66e987a637c994036b237661e21ec02d4d86e0586ba8cb4
This commit is contained in:
commit
fb44e4a7c6
|
@ -10,7 +10,7 @@ config=.github/labeler.yml
|
||||||
# Define a default value for SCAN_DIR if not set
|
# Define a default value for SCAN_DIR if not set
|
||||||
: "${SCAN_DIR:=.}"
|
: "${SCAN_DIR:=.}"
|
||||||
|
|
||||||
if [ "${1:-default}" '!=' "--force" ] && ! git diff --exit-code "$config";
|
if [ "${1:-default}" != "--force" ] && ! git diff --exit-code "$config";
|
||||||
then
|
then
|
||||||
echo "Error: $config is not committed."
|
echo "Error: $config is not committed."
|
||||||
echo "Refusing to overwrite it to prevent disaster."
|
echo "Refusing to overwrite it to prevent disaster."
|
||||||
|
|
Loading…
Reference in New Issue