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.

mfrb 346B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. #
  3. # mfrb
  4. #
  5. # Do "git rebase -i" against the "target" branch (RCBugFix or dev)
  6. #
  7. MFINFO=$(mfinfo) || exit
  8. IFS=' ' read -a INFO <<< "$MFINFO"
  9. if [[ ${INFO[4]} == "(no" ]]; then
  10. echo "Branch is unavailable!"
  11. exit 1
  12. fi
  13. case "$#" in
  14. 0 ) ;;
  15. * ) echo "Usage: `basename $0`" 1>&2 ; exit 1 ;;
  16. esac
  17. git rebase -i ${INFO[3]}