update the update thing

This commit is contained in:
Anri 2021-11-18 12:13:14 +01:00
parent d0727bb242
commit 9064067f03

View file

@ -15,10 +15,14 @@ then
fi fi
if [ -x $HOME/.vscodium_scripts ] ; then # if the folder already exists (not the first run?) if [ -x $HOME/.vscodium_scripts ] ; then # if the folder already exists (not the first run?)
# remove the folder # go to the folder and clear it
rm -rf $HOME/.vscodium_scripts cd $HOME/.vscodium_scripts
rm *
else # if the folder isn't already created (first run?) else # if the folder isn't already created (first run?)
# creating the folder
mkdir $HOME/.vscodium_scripts
cd $HOME/.vscodium_scripts
echo "" echo ""
echo "First run, adding commmands to shell, you will need to restart your shell" echo "First run, adding commmands to shell, you will need to restart your shell"
@ -51,10 +55,6 @@ else # if the folder isn't already created (first run?)
fi fi
fi fi
# (re)creating the folder
mkdir $HOME/.vscodium_scripts
cd $HOME/.vscodium_scripts
# downloading this script in the folder # downloading this script in the folder
wget -q --show-progress https://git.kennel.ml/Anri/downloadcodium/raw/branch/main/updateVSCodium.sh wget -q --show-progress https://git.kennel.ml/Anri/downloadcodium/raw/branch/main/updateVSCodium.sh