Fix folder path
Added root prevention
This commit is contained in:
parent
2ddbf88d8b
commit
ab21b4c285
7
start.sh
7
start.sh
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user