summaryrefslogtreecommitdiffstats
path: root/fetch.sh
blob: 877fa7bd4b1e133961a2ca5f4f91de5cdefb6811 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /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/radar-base.sh

if [[ -z "$@" ]]; then
  fetch;
else
  fetch $1;
fi