diff options
Diffstat (limited to 'fetch.sh')
-rwxr-xr-x | fetch.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |