scripting:newbie_traps

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
scripting:newbie_traps [2019/08/30 09:18]
ersen [Exporting]
scripting:newbie_traps [2019/08/30 09:20]
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: 2020/05/28 12:34
  • by fgrose