[BACK]Return to release.sh CVS log [TXT][DIR] Up to [local] / openbsd / update_openbsd

Diff for /openbsd/update_openbsd/release.sh between version 1.11 and 1.12

version 1.11, 2007/05/04 21:57:34 version 1.12, 2007/09/09 22:40:41
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $RedRiver: release.sh,v 1.10 2007/05/04 20:56:34 andrew Exp $  # $RedRiver: release.sh,v 1.11 2007/05/04 20:57:34 andrew Exp $
 # Copyright (c) 2002 - 2006, FenderQ  # Copyright (c) 2002 - 2006, FenderQ
 # All rights reserved.  # All rights reserved.
 #  #
Line 149 
Line 149 
   
 if [ $# = 0 ]; then usage; exit 1; fi  if [ $# = 0 ]; then usage; exit 1; fi
   
 if [ `whoami` != "root" ]; then  if [ `id -u` != "0" ]; then
         echo "You probably should be root instead of `whoami` to run this safely."          echo "You probably should be root instead of `whoami` to run this safely."
         exit 1          exit 1
 fi  fi

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>