manu7irl / klipper-DWC2-installer

to streamline the install or upgrade of KLIPPER & DWC2 front-end for it. With these 2 together no need to use octoprint. I run mine on orangepi zero with H2+ CPU 512MB and it works nicely.
GNU General Public License v3.0
55 stars 13 forks source link

syntax error #10

Closed TNT911 closed 4 years ago

TNT911 commented 4 years ago

Getting the following error:

Creating some folders...

./installer.sh: line 232: syntax error near unexpected token `else'

changedsoul commented 4 years ago

Same error for me. Tried the old script to update klipper and dwc and was left with a broken printer. Came here to update the installer hoping there was a fix and see it was updated yesturday....yipie!!! only to get this error too and now Im bummed, lol

exxperto commented 4 years ago

I'm not sure, but you can try change lines 229- 231

~~if [ $session_num == 0 ] then if [ -f $installLocation/printer.cfg ] && report_status "Moving and renaming your printer.cfg to the correct folder... under $PRINTER_FOLDER/"; sleep 3 && mv $installLocation/printer.cfg $KlipperFarm/$PRINTER_FOLDER~~

to this:

if [ $session_num == 0 ] && [ -f $installLocation/printer.cfg ]; then report_status "Moving and renaming your printer.cfg to the correct folder... under $PRINTER_FOLDER/" && sleep 3 && mv $installLocation/printer.cfg $KlipperFarm/$PRINTER_FOLDER

julien-w commented 4 years ago

Same error here...

manu7irl commented 4 years ago

corrected that! fixed 3 commits ago, test and report, thanks!