My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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"