diff --git a/bin/update-abq-formulae b/bin/update-abq-formulae index e6bb25d..c38465d 100755 --- a/bin/update-abq-formulae +++ b/bin/update-abq-formulae @@ -25,6 +25,11 @@ function getSHA() { curl --user-agent "${fake_user_agent}" "${url}" -o ./tmp/abq.tar --fail-with-body --silent -L sha=$(sha256sum ./tmp/abq.tar | cut -d ' ' -f 1) + if [[ "$url" == *"linux"* ]]; then + echo "${sha}" + return + fi + (cd tmp && tar -xvf abq.tar && mv abq_*/abq ./ && cd -) &>/dev/null chmod +x ./tmp/abq output=$(./tmp/abq --version) diff --git a/bin/update-captain-formulae b/bin/update-captain-formulae index 56a8585..c257786 100755 --- a/bin/update-captain-formulae +++ b/bin/update-captain-formulae @@ -24,6 +24,11 @@ function getSHA() { curl "${url}" -o ./tmp/captain --fail-with-body --silent -L sha=$(sha256sum ./tmp/captain | cut -d ' ' -f 1) + if [[ "$url" == *"linux"* ]]; then + echo "${sha}" + return + fi + chmod +x ./tmp/captain output=$(./tmp/captain --version) if ! (echo "${output}" | grep "v${expectedVersion}" &>/dev/null); then diff --git a/bin/update-mint-formulae b/bin/update-mint-formulae index 5c4df83..dfeb31f 100755 --- a/bin/update-mint-formulae +++ b/bin/update-mint-formulae @@ -24,6 +24,11 @@ function getSHA() { curl "${url}" -o ./tmp/mint --fail-with-body --silent -L sha=$(sha256sum ./tmp/mint | cut -d ' ' -f 1) + if [[ "$url" == *"linux"* ]]; then + echo "${sha}" + return + fi + chmod +x ./tmp/mint output=$(./tmp/mint --version) if ! (echo "${output}" | grep "v${expectedVersion}" &>/dev/null); then