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_backup
2018-09-01 06:57:55 -05:00

14 lines
412 B
Bash
Executable file

#!/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 -r Marlin/src/pins .test/pins
cp Marlin/Configuration*.h .test/
[ -f Marlin/_Bootscreen.h ] && cp Marlin/_Bootscreen.h .test/
[ -f Marlin/_Statusscreen.h ] && cp Marlin/_Statusscreen.h .test/
printf "\033[0;32mEnvironment Backup created\033[0m\n"
fi