This repository has been archived on 2022-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
Marlin-Artillery-M600/buildroot/bin/env_restore
2018-09-01 06:57:55 -05:00

12 lines
354 B
Bash
Executable file

#!/usr/bin/env bash
[ -z "$1" ] || cd $1
cp Marlin/src/config/default/* Marlin/
[ -f Marlin/_Bootscreen.h ] && rm Marlin/_Bootscreen.h
[ -f Marlin/_Statusscreen.h ] && rm Marlin/_Statusscreen.h
[ -d .test/pins ] && { cp .test/pins/* Marlin/src/pins/ ; rm -rf .test/pins ; }
[ -d .test ] && rm -r .test
printf "\033[0;32mEnvironment Restored\033[0m\n"