From bb017de265f3055538dd42d3047beebc69a193e7 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 1 May 2009 22:24:25 +0200 Subject: [PATCH] setup.sh: Don't use sed -i. This was necessary as there are different implementations. --- setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.45.2