Skip to content

Commit

Permalink
feat(install.sh): force re-download of Scaf on each install (#338)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gfranxman authored Sep 5, 2024
1 parent 76afd23 commit f7ef3e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit f7ef3e3

Please # to comment.