Skip to content

Commit 981c316

Browse files
committed
Added logic for taking package.pins into account when caching packages.
1 parent 4bc7da3 commit 981c316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ find $BUILD_DIR/.build/$BUILD_CONFIGURATION -type f -perm /a+x -exec cp {} $BUIL
249249
generate_pins_file() {
250250
if [[ ! -f $BUILD_DIR/Package.pins ]]; then
251251
local swift_version="$(get_swift_version_from_cli)"
252-
if [ $(echo "$swift_version>=3.1" | bc) == 1 ]; then
252+
if [ $(echo $swift_version 3.1 | awk '{ print ($1 >= $2) ? "true" : "false" }') == "true" ]; then
253253
swift package pin --all
254254
status "Generated Package.pins (Swift $swift_version)"
255255
else

0 commit comments

Comments
 (0)