summaryrefslogtreecommitdiffstats
path: root/fetch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fetch.sh')
-rwxr-xr-xfetch.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/fetch.sh b/fetch.sh
index 6618a6c..eed6960 100755
--- a/fetch.sh
+++ b/fetch.sh
@@ -1,4 +1,4 @@
-#! /usr/bin/env bash
+#!/usr/bin/env bash
if [[ "$OSTYPE" == *darwin* ]]; then
READLINK_CMD='greadlink'
@@ -6,8 +6,8 @@ else
READLINK_CMD='readlink'
fi
-dot="$(cd "$(dirname "$([ -L "$0" ] && $READLINK_CMD -f "$0" || echo "$0")")"; pwd)"
+dot="$(cd "$(dirname "$([ -L "$0" ] && $READLINK_CMD -f "$0" || echo "$0")")" || exit; pwd)"
-source $dot/sonar-base.sh
+source "$dot/sonar-base.sh"
fetch;