updated root check and home folder check

This commit is contained in:
2024-03-04 20:32:22 -06:00
parent 396bd66da4
commit ba51d04b50

View File

@@ -1,8 +1,13 @@
#!/bin/ash #!/bin/ash
if ! [ $(id -u) = 0 ]; then if [[ ! $(id -u) = 0 ]]; then
echo "Please run as root!" echo "Please run as root!"
exit 1 exit 1
fi
if [[ ! -d /home/akanealw ]]; then
echo "User akanealw not found."
exit 1
fi fi
mkdir /home/akanealw/scripts > /dev/null 2>&1 mkdir /home/akanealw/scripts > /dev/null 2>&1