My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mfadd 339B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. #
  3. # mfadd
  4. #
  5. # Add a remote and fetch it
  6. #
  7. [[ $# == 1 ]] || { echo "Usage: `basename $0` user" 1>&2 ; exit 1; }
  8. USER=$1
  9. MFINFO=$(mfinfo) || exit 1
  10. IFS=' ' read -a INFO <<< "$MFINFO"
  11. REPO=${INFO[2]}
  12. set -e
  13. echo "Adding and fetching $USER..."
  14. git remote add "$USER" "git@github.com:$USER/$REPO.git"
  15. git fetch "$USER"