From: Simon Ruderich Date: Fri, 1 May 2009 20:24:25 +0000 (+0200) Subject: setup.sh: Don't use sed -i. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=bb017de265f3055538dd42d3047beebc69a193e7;p=config%2Fdotfiles.git setup.sh: Don't use sed -i. This was necessary as there are different implementations. --- diff --git a/setup.sh b/setup.sh index 9e161bd..3c3e73c 100755 --- a/setup.sh +++ b/setup.sh @@ -13,8 +13,10 @@ if installed X; then # Use settings for XTerm also for UXTerm. This prevents code duplication. generate awk Xdefaults \ '{ print ; if ( /^XTerm/ ) { print "U" $0 } }' - # Xdefaults uses ! as comment instead of #. - sed -i 's/^#/!/' Xdefaults + # Xdefaults uses ! as comment instead of #. tmp file necessary because of + # different implementations of `sed -i`. + sed 's/^#/!/' Xdefaults > Xdefaults.tmp + mv Xdefaults.tmp Xdefaults link xinitrc ~/.xinitrc link xmodmaprc ~/.xmodmaprc