Permalink
Browse files

Removed executable right to avoid strip failure on startup scripts at…

… make install and protect other environment variables from space in path
  • Loading branch information...
1 parent eb63025 commit 63ca2f559e977117479105ca0fc062dc5fd82eeb @babs babs committed Jan 23, 2013
Showing with 7 additions and 8 deletions.
  1. 0 start-pgmodeler-mac.sh
  2. +7 −8 start-pgmodeler.sh
View
0 start-pgmodeler-mac.sh 100755 → 100644
No changes.
View
15 start-pgmodeler.sh 100755 → 100644
@@ -1,11 +1,10 @@
#/bin/bash
-SCRIPT=$(readlink -f $0 | sed -e 's/ /\\ /g')
-export PGMODELER_ROOT=`dirname "$SCRIPT"`
-export PGMODELER_CONF_DIR=$PGMODELER_ROOT/conf
-export PGMODELER_SCHEMAS_DIR=$PGMODELER_ROOT/schemas
-export PGMODELER_LANG_DIR=$PGMODELER_ROOT/lang
-export PGMODELER_TMP_DIR=$PGMODELER_ROOT/tmp
-export PGMODELER_PLUGINS_DIR=$PGMODELER_ROOT/plugins
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PGMODELER_ROOT/lib
+export PGMODELER_ROOT="$(dirname "$(readlink -f $0 | sed -e 's/ /\\ /g')")"
+export PGMODELER_CONF_DIR="$PGMODELER_ROOT/conf"
+export PGMODELER_SCHEMAS_DIR="$PGMODELER_ROOT/schemas"
+export PGMODELER_LANG_DIR="$PGMODELER_ROOT/lang"
+export PGMODELER_TMP_DIR="$PGMODELER_ROOT/tmp"
+export PGMODELER_PLUGINS_DIR="$PGMODELER_ROOT/plugins"
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$PGMODELER_ROOT/lib"
"$PGMODELER_ROOT/pgmodeler"

0 comments on commit 63ca2f5

Please sign in to comment.