about summary refs log tree commit diff
path: root/pkgs/development/compilers/swift/swiftpm
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2022-11-15 14:24:02 +0100
committerStéphan Kochen <git@stephank.nl>2022-11-15 14:24:02 +0100
commit0e08b082b894e987e89acb32b38f68f32f65c3d0 (patch)
treed000fc3cd5d6c919e6ba9eab550df4b31565bd86 /pkgs/development/compilers/swift/swiftpm
parentae174e2416670da8b6cc8a624f1c8af5ece06aca (diff)
swiftpm: improve setup hook shell conditions
Diffstat (limited to 'pkgs/development/compilers/swift/swiftpm')
-rw-r--r--pkgs/development/compilers/swift/swiftpm/setup-hook.sh4
1 files 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 654887d930ca0..160fbb1ccca31 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