From f7ef3e3ac0876c70f4c6f3e1f34a41386321e9a3 Mon Sep 17 00:00:00 2001 From: Glenn Franxman Date: Wed, 4 Sep 2024 20:19:25 -0400 Subject: [PATCH] feat(install.sh): force re-download of Scaf on each install (#338) In the script, before the step to download and install 'scaf', a check if a file at the 'TEMP_DOWNLOAD' location exists. If such a file does exist, it is removed before proceeding with the installation. --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 0c25a72c..aee1a34e 100755 --- a/install.sh +++ b/install.sh @@ -225,6 +225,10 @@ install_tilt() { } install_scaf() { + # Install/re-install scaf + if [ -f "$TEMP_DOWNLOAD" ]; then + rm $TEMP_DOWNLOAD + fi # Download and install scaf echo "Downloading scaf from $SCAF_SCRIPT_URL..." curl -L $SCAF_SCRIPT_URL -o $TEMP_DOWNLOAD @@ -260,8 +264,4 @@ for tool in kubectl kind tilt; do fi done -if ! command_exists scaf; then - install_scaf -else - echo "scaf is already installed." -fi +install_scaf