My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

firstpush 531B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env bash
  2. #
  3. # firstpush
  4. #
  5. # Push a branch to 'origin' and open the
  6. # commit log to watch Travis CI progress.
  7. #
  8. MFINFO=$(mfinfo) || exit
  9. IFS=' ' read -a INFO <<< "$MFINFO"
  10. FORK=${INFO[1]}
  11. REPO=${INFO[2]}
  12. BRANCH=${INFO[4]}
  13. git push --set-upstream origin $BRANCH
  14. TOOL=$(which gnome-open xdg-open open | awk '{ print $1 }')
  15. URL="https://github.com/$FORK/$REPO/commits/$BRANCH"
  16. if [ -z "$TOOL" ]; then
  17. echo "Can't find a tool to open the URL:"
  18. echo $URL
  19. else
  20. echo "Viewing commits on $BRANCH..."
  21. "$TOOL" "$URL"
  22. fi