]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
setup.sh: Improve check for Git version of GNU screen.
authorSimon Ruderich <simon@ruderich.org>
Mon, 15 Oct 2012 19:02:41 +0000 (21:02 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 15 Oct 2012 19:02:41 +0000 (21:02 +0200)
setup.sh

index c2a56d574475118bd5a32b8545609ca3c45e9c38..305c0931124929e42416dec7ef0574f97b12c205 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -90,7 +90,7 @@ if [ x`id -u` != x0 ]; then
 fi
 # I use some features of screen which are only in Git. Drop them on machines
 # which have older versions. They are marked as "(GIT)".
-if [ $hostname != asp -o x`id -u` = x0 ]; then
+if test -d "$HOME/development/shell/screen"; then
     echo screenrc: removing Git features
     grep -v '(GIT)' screenrc > screenrc.tmp
     mv screenrc.tmp screenrc