restore_configs 389 B

123456789101112
  1. #!/usr/bin/env bash
  2. rm -f Marlin/_Bootscreen.h Marlin/_Statusscreen.h marlin_config.json .pio/build/mc.zip
  3. if [[ $1 == '-d' || $1 == '--default' ]]; then
  4. use_example_configs
  5. else
  6. git checkout Marlin/Configuration.h 2>/dev/null
  7. git checkout Marlin/Configuration_adv.h 2>/dev/null
  8. git checkout Marlin/config.ini 2>/dev/null
  9. git checkout Marlin/src/pins/*/pins_*.h 2>/dev/null
  10. fi