summaryrefslogtreecommitdiffstats
path: root/fetch.sh
blob: eed69607584a0ce6a654d616bf6b6701312a4338 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

if [[ "$OSTYPE" == *darwin* ]]; then
  READLINK_CMD='greadlink'
else
  READLINK_CMD='readlink'
fi

dot="$(cd "$(dirname "$([ -L "$0" ] && $READLINK_CMD -f "$0" || echo "$0")")" || exit; pwd)"

source "$dot/sonar-base.sh"

fetch;