swiftpm: improve setup hook shell conditions
authored by toonn and committed by Stéphan Kochen 3 years ago 0e08b082 ae174e24