a zip code crypto-currency system good for red ONLY

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. ARG_DEFS=(
  3. "--repository=(.*)"
  4. "--directory=(.*)"
  5. "[--depth=(.*)]"
  6. "[--branch=(.*)]"
  7. )
  8. function run {
  9. rm -rf $DIRECTORY
  10. mkdir -p $DIRECTORY
  11. echo "-- Cloning $REPOSITORY#$BRANCH to $DIRECTORY..."
  12. ARGS="--branch=${BRANCH:-master} --depth=3"
  13. if [[ "$DEPTH" != "" ]]; then
  14. ARGS="$ARGS --depth=$DEPTH"
  15. fi
  16. git config --global user.email "hi@ionicframework.com"
  17. git config --global user.name "Ionitron"
  18. git clone git@github.com:ionic-team/$REPOSITORY.git $DIRECTORY $ARGS
  19. cd $DIRECTORY
  20. git fetch origin --tags
  21. cd ../
  22. }
  23. source $(dirname $0)/../utils.sh.inc