Permalink
Browse files

Updated wrapper for FreeBSD/OS X compatibility

  • Loading branch information...
1 parent 432374e commit 28ee6dfd8c9501e9fede178495d9e61518c627ba Nicholas Robinson committed with Oct 25, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/json_parse
View
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#add this feature to require...
-__filename=`readlink -f $0`
-. `dirname $__filename`/../parse.sh
-tokenize | parse
+__filename=$(cd "$(dirname "$0")"; pwd)
+. $__filename/../parse.sh
+tokenize | parse

0 comments on commit 28ee6df

Please sign in to comment.