fix: download in correct directory
This commit is contained in:
parent
125139e934
commit
a5f84c5249
|
|
@ -15,12 +15,6 @@ cd ~ || exit 1
|
|||
[ ! -d ~/klipper_logs ] && mkdir klipper_logs
|
||||
[ ! -d ~/gcode_files ] && mkdir gcode_files
|
||||
|
||||
download_configs(){
|
||||
[ ! -f ~/klipper_config/printer.cfg ] && curl -O $printer_cfg
|
||||
[ ! -f ~/klipper_config/moonraker.conf ] && curl -O $moonraker_conf
|
||||
[ ! -f ~/klipper_config/atmega644p.cfg ] && curl -O $atmega_cfg
|
||||
}
|
||||
|
||||
setup_klipper(){
|
||||
[ -d ~/klipper ] && return
|
||||
echo "##### Cloning Klipper ..."
|
||||
|
|
@ -79,6 +73,14 @@ build_simulavr(){
|
|||
echo "##### Done!"
|
||||
}
|
||||
|
||||
download_configs(){
|
||||
cd ~/klipper_config || exit 1
|
||||
[ ! -f ~/klipper_config/printer.cfg ] && curl -O $printer_cfg
|
||||
[ ! -f ~/klipper_config/moonraker.conf ] && curl -O $moonraker_conf
|
||||
[ ! -f ~/klipper_config/atmega644p.cfg ] && curl -O $atmega_cfg
|
||||
cd ~ || exit 1
|
||||
}
|
||||
|
||||
setup_klipper
|
||||
build_klipper_env
|
||||
setup_moonraker
|
||||
|
|
|
|||
Loading…
Reference in New Issue