From 1be0823f5b6c2cad58ba7736ef5c8b5890575dd2 Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Sun, 4 May 2014 00:12:22 -0700 Subject: [PATCH] Apple Bundle Fix --- data/scripts/create_apple_bundle.sh.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/scripts/create_apple_bundle.sh.in b/data/scripts/create_apple_bundle.sh.in index 49b83baf0..81b8963e0 100644 --- a/data/scripts/create_apple_bundle.sh.in +++ b/data/scripts/create_apple_bundle.sh.in @@ -37,9 +37,9 @@ LIBREADLINE=$MACPORTS/lib/libreadline.6.2.dylib echo -e "\n\nRunning..." # Check for u+w permissions on libreadline -_perm=`stat -f "%p" $LIBREADLINE` -_perm=${_perm:3:1} -if [ ${_perm} != "7" ] +CHECKREADLINE=$(stat -f "%p" $LIBREADLINE) +CHECKREADLINE=${CHECKREADLINE:3:1} +if [ "$CHECKREADLINE" != "7" ] then echo -e "\n\n\t\t\t\t***********\n\t\t\t\t* WARNING *\n\t\t\t\t***********" echo -e "File $LIBREADLINE is not marked as user writable."