summaryrefslogblamecommitdiffstats
path: root/fetch.sh
blob: a3fc57143a0e176e2a23845c45bdfa3692e24600 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                    







                                                                                    
                         
 




                      
#! /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 "$1" ]]; then
  fetch;
else
  fetch $1;
fi