mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2024-12-25 05:11:24 -08:00
25 lines
545 B
Plaintext
25 lines
545 B
Plaintext
check_install () {
|
|
echo "Installing: $1"
|
|
pacman -Q $1 &> /dev/null
|
|
if [ $? == 1 ] || [ -n "$PSREINSTALL" ]; then
|
|
pacman --noconfirm --overwrite='*' -S $1
|
|
fi
|
|
}
|
|
|
|
setup_proxspace ()
|
|
{
|
|
if [ "$MSYSTEM" == "MINGW64" ]; then
|
|
for pkg in $(grep "^[^#;]" /setup/packages.txt); do
|
|
check_install $pkg
|
|
done
|
|
|
|
python3 -m pip install ansicolors sslcrypto
|
|
|
|
yes | pacman -Sc
|
|
|
|
echo "export PSINSTALLDATE=\"$(date '+%Y-%m-%d %H:%M:%S')\"" > /setup/installed
|
|
echo "export PSINSTALLPATH=\"$OLDPWD\"" >> /setup/installed
|
|
|
|
fi
|
|
}
|
|
setup_proxspace |