comparison bin/example/self-writing.sh @ 326:dbb6ef0c9a26

ya gotta update your nonce
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 08 Jun 2013 08:48:26 -0700
parents bc2d0d504270
children 59f402cd9d98
comparison
equal deleted inserted replaced
325:bc2d0d504270 326:dbb6ef0c9a26
5 # Other solutions (magic markers, etc) are possible 5 # Other solutions (magic markers, etc) are possible
6 6
7 path=`readlink -f $0` 7 path=`readlink -f $0`
8 tmp=`tempfile --mode 0755` 8 tmp=`tempfile --mode 0755`
9 datestamp=`date` 9 datestamp=`date`
10 nonce="This script regenerated at " 10 nonce="This script last generated at "
11 11
12 # sanity check 12 # sanity check
13 if [[ ! -w "${path}" ]] 13 if [[ ! -w "${path}" ]]
14 then 14 then
15 echo "You don't have write permission for script ${path}" 15 echo "You don't have write permission for script ${path}"