summaryrefslogtreecommitdiffstats
path: root/fetch.sh
blob: 6618a6c629b866cbb7775ea25c39b31759e60a99 (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")")"; pwd)"

source $dot/sonar-base.sh

fetch;