# HG changeset patch # User Jeff Hammel # Date 1370706141 25200 # Node ID bc2d0d5042701590cd24fb9aefd2289b87515347 # Parent ae1346f776c35faaf4a0caa9ab5a79fb4630767d preserve mode (could, in theory, take from script) diff -r ae1346f776c3 -r bc2d0d504270 bin/example/self-writing.sh --- a/bin/example/self-writing.sh Sat Jun 08 08:35:15 2013 -0700 +++ b/bin/example/self-writing.sh Sat Jun 08 08:42:21 2013 -0700 @@ -5,7 +5,7 @@ # Other solutions (magic markers, etc) are possible path=`readlink -f $0` -tmp=`tempfile` +tmp=`tempfile --mode 0755` datestamp=`date` nonce="This script regenerated at "