Skip to content

Commit

Permalink
Update install.sh, deletes miniconda installer if interrupted
Browse files Browse the repository at this point in the history
Potential errors could be avoided and resources can be saved if the miniconda installer is deleted before downloading it again.

This is in the case the script is interrupted before the download is completed.

I thought that it would be better if it instead checked if it was already there, just so it doesn't have to download it again, but that would cause issues in case the existing file is incomplete or corrupted
  • Loading branch information
pato-pan authored Feb 27, 2024
1 parent 6ae4877 commit c03ff2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ install_st_extras_pre() {
git clone https://github.com/SillyTavern/SillyTavern-extras.git

# Download the Miniconda installer script
rm /tmp/$miniconda_installer
wget https://repo.anaconda.com/miniconda/$miniconda_installer -P /tmp
chmod +x /tmp/$miniconda_installer

Expand Down Expand Up @@ -981,4 +982,4 @@ elif command -v zypper &>/dev/null; then
else
log_message "ERROR" "${red_fg_strong}Unsupported package manager. Cannot detect Linux distribution.${reset}"
exit 1
fi
fi

0 comments on commit c03ff2b

Please sign in to comment.