diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-10-17 08:48:12 +0200 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-10-17 08:48:12 +0200 |
commit | 207d5b4910b17b08b47a85d417bdbae00c6febf2 (patch) | |
tree | 274ab6a5e4bb0bf6a000f5a4795e80de6c66a78b /pkgs/build-support/php/hooks/composer-install-hook.sh | |
parent | 22e61b14022b261a83fbb7e38c4b3c6760e840af (diff) |
php/build-support: fix usage of diff condition
Remove double brackets and replace `diff` with `cmp`
Diffstat (limited to 'pkgs/build-support/php/hooks/composer-install-hook.sh')
-rw-r--r-- | pkgs/build-support/php/hooks/composer-install-hook.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/php/hooks/composer-install-hook.sh b/pkgs/build-support/php/hooks/composer-install-hook.sh index 49ff0449719a4..09bd19e69b27e 100644 --- a/pkgs/build-support/php/hooks/composer-install-hook.sh +++ b/pkgs/build-support/php/hooks/composer-install-hook.sh @@ -49,7 +49,7 @@ composerInstallConfigureHook() { fi echo "Validating consistency between composer.lock and ${composerRepository}/composer.lock" - if [[! @diff@ composer.lock "${composerRepository}/composer.lock"]]; then + if ! @cmp@ -s "composer.lock" "${composerRepository}/composer.lock"; then echo echo "ERROR: vendorHash is out of date" echo |