mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-14 02:27:03 -07:00
ps-upgrade now upgrades /msys2/ps folder
This commit is contained in:
parent
8c7d6893f6
commit
021ef0ec63
2 changed files with 21 additions and 2 deletions
|
@ -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
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue