12 lines
207 B
Plaintext
12 lines
207 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
user="$1" # User nickname.
|
||
|
admin="$2" # If one is an admin.
|
||
|
|
||
|
if [ "$admin" != 'true' ]; then
|
||
|
printf "%s\n" "$user: you are not an admin"
|
||
|
else
|
||
|
printf "%s\n" "$user: you are an admin"
|
||
|
fi
|
||
|
|