Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
scripting:newbie_traps [2019/08/30 09:18]
ersen [Exporting]
scripting:newbie_traps [2019/08/30 09:20] (current)
ersen [Reacting to exit codes]
Line 186: Line 186:
 grep ^root: /etc/passwd >/​dev/​null 2>&1 grep ^root: /etc/passwd >/​dev/​null 2>&1
  
-if [ $? -neq 0 ]; then+if [ $? -ne 0 ]; then
   echo "root was not found - check the pub at the corner"​   echo "root was not found - check the pub at the corner"​
 fi fi
  • scripting/newbie_traps.txt
  • Last modified: 2019/08/30 09:20
  • by ersen