Possible Typo in Lab: Comprehensive Review of System Administration III ??
So I'm going through the labs and I cannot get requirement #8 (bash scripting) to work. I've copied the script in the solution line for line but it still doesn't operate as expected. For whatever reason I cannot get this section of code to work:
This SHOULD trigger when the script is passed with no arguments.
userinfo) if [ "$2" == "" ]; then echo "Please specify a username" exit 132
This case selection never triggers. Even when I run #./myusers userinfo. The script just passes over this case and goes straight to "getent passwd $2 | cut -d: -f7" at the bottom. Maybe I've been staring at this too long and missed something? Or is there an error here in the solution provided?
EDIT: Nevermind. I just copied and pasted it again and it works. I've no idea why though.