check for special characters in install path

This commit is contained in:
gator96100 2020-02-02 00:05:09 +01:00
commit dc357e3501

View file

@ -1,4 +1,8 @@
#!/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 )"