Hello
I am new in linux scripting. I have problems with this script:
Quote:
#!/bin/bash
wa=$(whoami)
if [$wa="user"]; then
echo "I am: $wa"
else
echo "Who are you?"
fi
Why "wa" is not equal to "user" when I am login in my terminal like user?
How to get wa equal to "user"?
Thanks