changeset 325:bc2d0d504270

preserve mode (could, in theory, take from script)
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 08 Jun 2013 08:42:21 -0700
parents ae1346f776c3
children dbb6ef0c9a26
files bin/example/self-writing.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 "