From: Simon Ruderich Date: Tue, 8 Oct 2013 14:34:17 +0000 (+0200) Subject: setup.sh: Use sed_i(). X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=b7b3a93d3974a9f722108dfa4a8c7126e6dd716a;p=config%2Fdotfiles.git setup.sh: Use sed_i(). --- 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