updated root check and home folder check
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
#!/bin/ash
|
||||
|
||||
if ! [ $(id -u) = 0 ]; then
|
||||
if [[ ! $(id -u) = 0 ]]; then
|
||||
echo "Please run as root!"
|
||||
exit 1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -d /home/akanealw ]]; then
|
||||
echo "User akanealw not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir /home/akanealw/scripts > /dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user