about summary refs log tree commit diff
path: root/pkgs/development/tools/xcbuild
diff options
context:
space:
mode:
authorStéphan Kochen <git@stephank.nl>2022-09-16 20:16:45 +0200
committerStéphan Kochen <git@stephank.nl>2022-10-10 21:25:44 +0200
commit2c2b799dba29e6fca8fea3c3911a5291fff42b90 (patch)
tree78d0cd0bccf54c1f9fc84523019088feba04422e /pkgs/development/tools/xcbuild
parent64e5389634bad9ac9ad80f50533f7d73d3cf9a39 (diff)
xcbuild: exit with error if --find fails
Diffstat (limited to 'pkgs/development/tools/xcbuild')
-rw-r--r--pkgs/development/tools/xcbuild/wrapper.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/tools/xcbuild/wrapper.nix b/pkgs/development/tools/xcbuild/wrapper.nix
index cefda47cb5be2..82b3d2910352e 100644
--- a/pkgs/development/tools/xcbuild/wrapper.nix
+++ b/pkgs/development/tools/xcbuild/wrapper.nix
@@ -73,7 +73,7 @@ while [ $# -gt 0 ]; do
          --toolchain | -toolchain) shift ;;
          --find | -find | -f)
            shift
-           command -v $1 ;;
+           command -v $1 || exit 1 ;;
          --log | -log) ;; # noop
          --verbose | -verbose) ;; # noop
          --no-cache | -no-cache) ;; # noop