Better plugin and answer examples

This commit is contained in:
Alexei Sorokin
2016-08-19 21:08:03 +03:00
parent 1b8b17ae8a
commit b49934972f
3 changed files with 26 additions and 25 deletions

View File

@@ -1,11 +1,11 @@
#!/bin/bash
#!/bin/sh
user="$1" # nickname
admin="$2" # if he is an admin
user="$1" # User nickname.
admin="$2" # If one is an admin.
if [ "$admin" != 'true' ]; then
echo "$user: you are not an admin"
printf "%s\n" "$user: you are not an admin"
else
echo "$user: you are an admin"
printf "%s\n" "$user: you are an admin"
fi