ps-upgrade now upgrades /msys2/ps folder

This commit is contained in:
Gator96100 2020-09-27 00:04:45 +02:00
commit 021ef0ec63
2 changed files with 21 additions and 2 deletions

View file

@ -4,6 +4,11 @@ export PS1='\[\033]0;ProxSpace v$PSVERSION - $MSYSTEM:\w\007\033[32m\]pm3 \[\033
export PATH=/gcc-arm-none-eabi/bin:/ps/bin:$PATH
alias ls='ls -hF --color=auto'
if [ -f /ps/bin/ps/ps-upgrade.new ]; then
rm /ps/bin/ps/ps-upgrade
mv /ps/bin/ps/ps-upgrade.new /ps/bin/ps/ps-upgrade
fi
if [ \( ! -f /ps/installed64.txt -a "$MSYSTEM" == "MINGW64" \) ]; then
if [ "$MAYBE_FIRST_START" = "true" ]; then
yes | pacman -Syuu
@ -15,4 +20,4 @@ if [ \( ! -f /ps/installed64.txt -a "$MSYSTEM" == "MINGW64" \) ]; then
yes | pacman -Su
ps-setup
fi
fi
fi

View file

@ -1,2 +1,16 @@
rm /ps/installed64.txt &> /dev/null
yes | pacman -Syuu
git clone https://github.com/Gator96100/ProxSpace.git /ps-upgrade
mv /ps-upgrade/msys2/ps/bin/ps-upgrade /ps-upgrade/msys2/ps/bin/ps-upgrade.new
if [ "$#" -ne 0 ]; then
git checkout $@
fi
shopt -s extglob
cd /ps
rm -rf -- !(bin)
cd /ps/bin
rm -rf -- !(ps-upgrade)
cp -R /ps-upgrade/msys2/ps /
rm -rf /ps-upgrade
yes | pacman -Syuu
echo "Please restart ProxSpace"
sleep infinity