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 runHook postBuild 20 } 21 22 - if [ -z "${dontUseSwiftpmBuild-}" -a -z "${buildPhase-}" ]; then 23 buildPhase=swiftpmBuildPhase 24 fi 25 ··· 44 runHook postCheck 45 } 46 47 - if [ -z "${dontUseSwiftpmCheck-}" -a -z "${checkPhase-}" ]; then 48 checkPhase=swiftpmCheckPhase 49 fi 50
··· 19 runHook postBuild 20 } 21 22 + if [ -z "${dontUseSwiftpmBuild-}" ] && [ -z "${buildPhase-}" ]; then 23 buildPhase=swiftpmBuildPhase 24 fi 25 ··· 44 runHook postCheck 45 } 46 47 + if [ -z "${dontUseSwiftpmCheck-}" ] && [ -z "${checkPhase-}" ]; then 48 checkPhase=swiftpmCheckPhase 49 fi 50