swiftpm: improve setup hook shell conditions

This commit is contained in:
toonn
2022-11-15 14:24:02 +01:00
committed by Stéphan Kochen
parent ae174e2416
commit 0e08b082b8
@@ -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