swiftpm: improve setup hook shell conditions

authored by toonn and committed by Stéphan Kochen 0e08b082 ae174e24

+2 -2
+2 -2
pkgs/development/compilers/swift/swiftpm/setup-hook.sh
··· 19 19 runHook postBuild 20 20 } 21 21 22 - if [ -z "${dontUseSwiftpmBuild-}" -a -z "${buildPhase-}" ]; then 22 + if [ -z "${dontUseSwiftpmBuild-}" ] && [ -z "${buildPhase-}" ]; then 23 23 buildPhase=swiftpmBuildPhase 24 24 fi 25 25 ··· 44 44 runHook postCheck 45 45 } 46 46 47 - if [ -z "${dontUseSwiftpmCheck-}" -a -z "${checkPhase-}" ]; then 47 + if [ -z "${dontUseSwiftpmCheck-}" ] && [ -z "${checkPhase-}" ]; then 48 48 checkPhase=swiftpmCheckPhase 49 49 fi 50 50