options are now the primary use case

This commit is contained in:
silvernode 2016-02-05 15:22:42 -07:00
parent 474d2d9f62
commit f8274a4bb7

View File

@ -46,7 +46,7 @@ Remove_user(){
if [ -d /home/${duser} ];then
rm -R /home/${duser}
else
echo "User creation failed"
echo "User deletion failed"
fi
}
main(){
@ -70,4 +70,8 @@ main(){
done
}
Create_user
case "$1" in
add ) Create_user;;
remove ) Remove_user;;
* ) echo "Usage: mkusr [add | remove]";;
esac