]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
setup.sh: Use test instead of [.
authorSimon Ruderich <simon@ruderich.org>
Mon, 25 Mar 2013 14:21:13 +0000 (15:21 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 25 Mar 2013 14:21:13 +0000 (15:21 +0100)
setup.sh

index 53fc2672691662b8c68cd9bab0d6c26e6863aaab..6a980a346d90661237a8366713f74f50c17e34a6 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -51,10 +51,10 @@ if installed X; then
     sed 's/^#/!/' Xdefaults > Xdefaults.tmp
     mv Xdefaults.tmp Xdefaults
 
-    if [ x`os` != xdarwin ]; then
+    if test ! "x`os`" = xdarwin; then
         link xinitrc ~/.xinitrc
     fi
-    if [ -f xinitrc.local ]; then
+    if test -f xinitrc.local; then
         link xinitrc.local ~/.xinitrc.local
     fi
     link xmodmaprc ~/.xmodmaprc