Skip to content
This repository has been archived by the owner on Feb 9, 2018. It is now read-only.

Commit

Permalink
Allow PMS_HOME with spaces in path by quoting variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SubJunk committed Jun 17, 2012
1 parent 90cfdf8 commit 5b1c0d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/external-resources/UMS.sh
@@ -1,7 +1,7 @@
#!/bin/sh

CMD=`readlink -f $0`
DIRNAME=`dirname $CMD`
DIRNAME=`dirname "$CMD"`

# OS specific support (must be 'true' or 'false').
cygwin=false;
Expand All @@ -21,12 +21,12 @@ fi

# Setup PMS_HOME
if [ "x$PMS_HOME" = "x" ]; then
PMS_HOME=$DIRNAME
PMS_HOME="$DIRNAME"
fi

export PMS_HOME
# XXX: always cd to the working dir: https://code.google.com/p/ps3mediaserver/issues/detail?id=730
cd $PMS_HOME
cd "$PMS_HOME"

# Setup the JVM
if [ "x$JAVA" = "x" ]; then
Expand Down

0 comments on commit 5b1c0d4

Please sign in to comment.