2018-07-14 06:42:15 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-08-21 03:52:25 +02:00
|
|
|
[ -z "$1" ] || cd $1
|
2018-07-14 06:42:15 +02:00
|
|
|
|
|
|
|
if [ -d ".test" ]; then
|
2018-08-21 03:52:25 +02:00
|
|
|
cp .test/Configuration*.h Marlin/
|
|
|
|
rm .test/Configuration*.h
|
2018-07-14 06:42:15 +02:00
|
|
|
|
|
|
|
if [ -f .test/_Bootscreen.h ]; then
|
2018-08-21 03:52:25 +02:00
|
|
|
cp .test/_Bootscreen.h Marlin/
|
2018-07-14 06:42:15 +02:00
|
|
|
rm .test/_Bootscreen.h
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f .test/_Statusscreen.h ]; then
|
2018-08-21 03:52:25 +02:00
|
|
|
cp .test/_Statusscreen.h Marlin/
|
2018-07-14 06:42:15 +02:00
|
|
|
rm .test/_Statusscreen.h
|
|
|
|
fi
|
|
|
|
|
|
|
|
cp -r .test/pins Marlin/src
|
|
|
|
rm -r .test/pins
|
|
|
|
|
|
|
|
rmdir .test
|
|
|
|
printf "\033[0;32mEnvironment Restored\033[0m\n"
|
|
|
|
else
|
|
|
|
printf "\033[0;31mEnvironment Backup not available!\033[0m\n"
|
|
|
|
fi
|