Permalink
Browse files

add dependency check

  • Loading branch information...
1 parent f1b3bc2 commit 98cabae2e9fad46671927631b608cbfe0d4e7251 RunningDroid committed Dec 21, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 cursorfix.sh
View
@@ -4,4 +4,8 @@ if ! test -f libcursorfix.so; then
gcc -shared -o libcursorfix.so cursorfix.c -ldl -fPIC -m32 || exit 1
fi
-LD_PRELOAD=libcursorfix.so steam
+if $(which steam > /dev/null); then
+ LD_PRELOAD=libcursorfix.so steam
+else
+ return 1
+fi

0 comments on commit 98cabae

Please sign in to comment.