@@ -30,7 +30,7 @@ if [ "${SKIP_SWIFT_BOOTSTRAP:-}" != true ]; then
3030 puts " Install SwiftLint v${SWIFT_LINT_VERSION} "
3131 DOWNLOAD_URL=" https://github.com/realm/SwiftLint/releases/download/${SWIFT_LINT_VERSION} /SwiftLint.pkg"
3232 DOWNLOAD_PATH=" /tmp/SwiftLint-${SWIFT_LINT_VERSION} .pkg"
33- curl -sL " $DOWNLOAD_URL " -o " $DOWNLOAD_PATH "
33+ wget " $DOWNLOAD_URL " -O " $DOWNLOAD_PATH "
3434 sudo installer -pkg " $DOWNLOAD_PATH " -target /
3535 swiftlint version
3636
@@ -39,7 +39,7 @@ if [ "${SKIP_SWIFT_BOOTSTRAP:-}" != true ]; then
3939 DOWNLOAD_PATH=" /tmp/swiftformat-${SWIFT_FORMAT_VERSION} .zip"
4040 BIN_PATH=" /usr/local/bin/swiftformat"
4141 brew uninstall swiftformat || true
42- curl -sL " $DOWNLOAD_URL " -o " $DOWNLOAD_PATH "
42+ wget " $DOWNLOAD_URL " -O " $DOWNLOAD_PATH "
4343 unzip -o " $DOWNLOAD_PATH " -d /tmp/swiftformat-${SWIFT_FORMAT_VERSION}
4444 sudo mv /tmp/swiftformat-${SWIFT_FORMAT_VERSION} /swiftformat " $BIN_PATH "
4545 sudo chmod +x " $BIN_PATH "
@@ -50,7 +50,7 @@ if [ "${SKIP_SWIFT_BOOTSTRAP:-}" != true ]; then
5050 DOWNLOAD_PATH=" /tmp/swiftgen-${SWIFT_GEN_VERSION} .zip"
5151 INSTALL_DIR=" /usr/local/lib/swiftgen"
5252 BIN_PATH=" /usr/local/bin/swiftgen"
53- curl -sL " $DOWNLOAD_URL " -o " $DOWNLOAD_PATH "
53+ wget " $DOWNLOAD_URL " -O " $DOWNLOAD_PATH "
5454 sudo rm -rf " $INSTALL_DIR "
5555 sudo mkdir -p " $INSTALL_DIR "
5656 sudo unzip -o " $DOWNLOAD_PATH " -d " $INSTALL_DIR "
6262if [[ ${INSTALL_SONAR-default} == true ]]; then
6363 puts " Install sonar scanner v${SONAR_VERSION} "
6464 DOWNLOAD_URL=" https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_VERSION} -macosx-x64.zip"
65- curl -sL " ${DOWNLOAD_URL} " -o ./fastlane/sonar.zip
65+ wget " ${DOWNLOAD_URL} " -O ./fastlane/sonar.zip
6666 cd fastlane
6767 unzip sonar.zip
6868 rm sonar.zip
7474if [[ ${INSTALL_ALLURE-default} == true ]]; then
7575 puts " Install allurectl v${ALLURECTL_VERSION} "
7676 DOWNLOAD_URL=" https://github.com/allure-framework/allurectl/releases/download/${ALLURECTL_VERSION} /allurectl_darwin_amd64"
77- curl -sL " ${DOWNLOAD_URL} " -o ./fastlane/allurectl
77+ wget " ${DOWNLOAD_URL} " -O ./fastlane/allurectl
7878 chmod +x ./fastlane/allurectl
7979
8080 puts " Install xcresults v${XCRESULTS_VERSION} "
8181 DOWNLOAD_URL=" https://github.com/eroshenkoam/xcresults/releases/download/${XCRESULTS_VERSION} /xcresults"
82- curl -sL " ${DOWNLOAD_URL} " -o ./fastlane/xcresults
82+ wget " ${DOWNLOAD_URL} " -O ./fastlane/xcresults
8383 chmod +x ./fastlane/xcresults
8484fi
8585
0 commit comments