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.
15 lines
414 B
15 lines
414 B
5 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
[ -z "$1" ] || cd $1
|
||
|
|
||
|
if [ -d ".test" ]; then
|
||
|
printf "\033[0;31mEnvironment backup already exists!\033[0m\n"
|
||
|
else
|
||
|
mkdir .test
|
||
|
cp Marlin/Configuration*.h .test/
|
||
|
[ -f Marlin/_Bootscreen.h ] && cp Marlin/_Bootscreen.h .test/
|
||
|
[ -f Marlin/_Statusscreen.h ] && cp Marlin/_Statusscreen.h .test/
|
||
|
cp -r Marlin/src/pins .test/pins
|
||
|
printf "\033[0;32mEnvironment Backup created\033[0m\n"
|
||
|
fi
|