Added downloaded by git check

This commit is contained in:
Gator96100 2020-08-17 14:44:43 +02:00
commit 5bc8dbdc75
3 changed files with 14 additions and 5 deletions

View file

@ -15,4 +15,5 @@ del %cd%\msys2\etc\passwd 2> nul
del %cd%\msys2\etc\group 2> nul
touch /etc/passwd
touch /etc/group
bash /ps/startup_checks.sh
bash /ps/user_setup.sh

View file

@ -0,0 +1,13 @@
#!/bin/bash
#Check for an invalid ProxSpace path
if ! (echo "$PWD" | grep -Eq ^[a-zA-Z0-9\/\._\-]+$) ; then
echo "Error: Install path contains special characters!"
sleep infinity
fi
#Using git to download ProxSpace will cause an installation error
if [ -d "$PWD/.git" ]; then
echo "Error: Do not use Git to download ProxSpace!"
sleep infinity
fi

View file

@ -1,9 +1,4 @@
#!/bin/bash
if ! (echo "$PWD" | grep -Eq ^[a-zA-Z0-9\/\._\-]+$) ; then
echo "Error: Install path contains special characters!"
sleep infinity
fi
MKPASSWD_CURRENT="$( mkpasswd -c )"
MKGROUP_CURRENT="$( mkgroup -c )"
USER_SID="$( echo $MKPASSWD_CURRENT | gawk -F":" '{ print $5 }' )"