From 1e02a29ca9ac36002eb56c67e86f060b035cbd0e Mon Sep 17 00:00:00 2001 From: Panagiotis PJ Papadomitsos Date: Thu, 24 Sep 2015 13:31:27 -0700 Subject: Regression fix on startup script improvements Fixed a regression that occurs when using readlink on a Mac, which crashes the startup script if the startup script is not a link but an actual file (which is the most common case) --- priv/templates/bin | 2 +- priv/templates/extended_bin | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/priv/templates/bin b/priv/templates/bin index 3067259..0b439c3 100755 --- a/priv/templates/bin +++ b/priv/templates/bin @@ -2,7 +2,7 @@ set -e -SCRIPT=$(readlink $0) +SCRIPT=$(readlink $0 || true) if [ -z $SCRIPT ]; then SCRIPT=$0 fi; diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin index 1d4da54..f7955cb 100755 --- a/priv/templates/extended_bin +++ b/priv/templates/extended_bin @@ -2,7 +2,7 @@ set -e -SCRIPT=$(readlink $0) +SCRIPT=$(readlink $0 || true) if [ -z $SCRIPT ]; then SCRIPT=$0 fi; -- cgit v1.2.3