From 7cf7481a68374775bb460878041b97870ab35c37 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Tue, 26 Jan 2010 15:11:22 -0700 Subject: [PATCH] Fixing issue #3; make sure to properly escape simplenode related files. Patch provided by cstar..thanks! --- priv/templates/simplenode.erl.script | 2 +- priv/templates/simplenode.runner | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/priv/templates/simplenode.erl.script b/priv/templates/simplenode.erl.script index d97c514..e500626 100644 --- a/priv/templates/simplenode.erl.script +++ b/priv/templates/simplenode.erl.script @@ -24,7 +24,7 @@ APP_VSN=${START_ERL#* } BINDIR=$ROOTDIR/erts-$ERTS_VSN/bin EMU=beam -PROGNAME=`echo $0 | sed 's/.*\///'` +PROGNAME=`echo $0 | sed 's/.*\\///'` CMD="$BINDIR/erlexec" export EMU export ROOTDIR diff --git a/priv/templates/simplenode.runner b/priv/templates/simplenode.runner index 08fa4af..70f4584 100755 --- a/priv/templates/simplenode.runner +++ b/priv/templates/simplenode.runner @@ -103,7 +103,7 @@ case "$1" in ROOTDIR=$RUNNER_BASE_DIR BINDIR=$ROOTDIR/erts-$ERTS_VSN/bin EMU=beam - PROGNAME=`echo $0 | sed 's/.*\///'` + PROGNAME=`echo $0 | sed 's/.*\\///'` CMD="$BINDIR/erlexec -boot $RUNNER_BASE_DIR/releases/$APP_VSN/$SCRIPT -embedded -config $RUNNER_ETC_DIR/app.config -args_file $RUNNER_ETC_DIR/vm.args -- ${1+"$@"}" export EMU export ROOTDIR