From b7b3a93d3974a9f722108dfa4a8c7126e6dd716a Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 8 Oct 2013 16:34:17 +0200 Subject: [PATCH] setup.sh: Use sed_i(). --- setup.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index 0e456ac..6506171 100755 --- a/setup.sh +++ b/setup.sh @@ -46,10 +46,8 @@ if installed X; then } else { print $_; }' - # 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 + # Xdefaults uses ! as comment instead of #. + sed_i 's/^#/!/' Xdefaults if test ! "x`os`" = xdarwin; then link xinitrc ~/.xinitrc -- 2.45.2