Fix folder path

Added root prevention
This commit is contained in:
Bastian Hofmann 2022-11-14 15:58:09 +01:00
parent 2ddbf88d8b
commit ab21b4c285

View File

@ -1,9 +1,14 @@
#!/bin/bash #!/bin/bash
if [ "$EUID" -e 0 ]; then
printf "Please run as user. I will invoke sudo when needed."
exit
fi
pushd $(dirname "$0") pushd $(dirname "$0")
if [ ! -d "home" ]; then if [ ! -d "home" ]; then
mkdir $(dirname "$0")/home mkdir home
fi fi
if [ ! -d "home/.ssh" ]; then if [ ! -d "home/.ssh" ]; then