From 26e7500d57d1e6fe318c6456d8358fa38fa0c615 Mon Sep 17 00:00:00 2001 From: Carl Mercier Date: Thu, 5 Nov 2020 11:40:10 -0500 Subject: [PATCH] Allow forcing redownload of OCSanity --- repo_scripts/sanity_check | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repo_scripts/sanity_check b/repo_scripts/sanity_check index 13e117e..9ed3d39 100755 --- a/repo_scripts/sanity_check +++ b/repo_scripts/sanity_check @@ -15,10 +15,12 @@ while [[ "$#" -gt 0 ]]; do case $1 in -v|--version) VERSION="$2"; shift ;; -c|--cpu) CPU="$2"; shift ;; + -f|--force-download) FORCE_DL=true; shift ;; -h|--help) echo "Usage:" echo "./sanity_check --version 0.6.1 # target a specific version. Defaults to latest version" echo "./sanity_check --cpu cometlake # for specific CPU architecture. Defaults to: '$DEFAULT_CPU'" + echo "./sanity_check --force-download # force redownloading OCSanity even if it already exists." exit 1 ;; *) echo "Unknown parameter passed: $1"; exit 1 ;; esac @@ -45,7 +47,7 @@ if [ $? -ne 0 ]; then brew install composer jq > /dev/null 2>&1 fi -if [ ! -d "/tmp/OCSanity-master" ]; then +if [ ! -d "/tmp/OCSanity-master" ] || [ "$FORCE_DL" = true ]; then echo "Fetching latest OCSanity..." cd /tmp rm -f master.zip