From 0e08b082b894e987e89acb32b38f68f32f65c3d0 Mon Sep 17 00:00:00 2001 From: toonn Date: Tue, 15 Nov 2022 14:24:02 +0100 Subject: [PATCH] swiftpm: improve setup hook shell conditions --- pkgs/development/compilers/swift/swiftpm/setup-hook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/swift/swiftpm/setup-hook.sh b/pkgs/development/compilers/swift/swiftpm/setup-hook.sh index 654887d930ca..160fbb1ccca3 100644 --- a/pkgs/development/compilers/swift/swiftpm/setup-hook.sh +++ b/pkgs/development/compilers/swift/swiftpm/setup-hook.sh @@ -19,7 +19,7 @@ swiftpmBuildPhase() { runHook postBuild } -if [ -z "${dontUseSwiftpmBuild-}" -a -z "${buildPhase-}" ]; then +if [ -z "${dontUseSwiftpmBuild-}" ] && [ -z "${buildPhase-}" ]; then buildPhase=swiftpmBuildPhase fi @@ -44,7 +44,7 @@ swiftpmCheckPhase() { runHook postCheck } -if [ -z "${dontUseSwiftpmCheck-}" -a -z "${checkPhase-}" ]; then +if [ -z "${dontUseSwiftpmCheck-}" ] && [ -z "${checkPhase-}" ]; then checkPhase=swiftpmCheckPhase fi