fix syntax of $HOME var use
authorRudolf Polzer <divverent@alientrap.org>
Sun, 4 Jul 2010 16:36:06 +0000 (18:36 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 4 Jul 2010 16:36:06 +0000 (18:36 +0200)
all

diff --git a/all b/all
index c9de1c4641b4e697dda57493c06993692f7efcfc..541467a2e5f2d5539d1b6021d11b8b908f56e5fd 100755 (executable)
--- a/all
+++ b/all
@@ -426,7 +426,7 @@ case "$cmd" in
                        if [ -z "$CC" ]; then
                                export CC=gcc
                        fi
-               elif [ x"`uname`" = x"Darwin" ] && ( [ -d /Library/Frameworks/SDL.framework ] || [ -d $(HOME)/Library/Frameworks/SDL.framework ] ); then
+               elif [ x"`uname`" = x"Darwin" ] && { [ -d /Library/Frameworks/SDL.framework ] || [ -d "$HOME/Library/Frameworks/SDL.framework" ]; }; then
                        # AGL is broken in Snow Leopard, so let's default to SDL if it is available.
                        TARGETS="sv-debug sdl-debug"
                else