add condition to move

This commit is contained in:
paukstelis
2022-06-26 16:34:04 -04:00
parent 2aa88d86f3
commit 52a7384146

View File

@@ -818,7 +818,7 @@ prepare () {
echo 'instance:generic port:5000' > /etc/octoprint_instances echo 'instance:generic port:5000' > /etc/octoprint_instances
echo 'Adding camera port records' echo 'Adding camera port records'
touch /etc/camera_ports touch /etc/camera_ports
if [ -n $MOVE ]; then if [ -n $MOVE ] || [ $MOVE -eq 1 ]; then
echo "You can move your previously uploaded gcode to the template instance now." echo "You can move your previously uploaded gcode to the template instance now."
echo "If you do this, ALL new instances will have these gcode files." echo "If you do this, ALL new instances will have these gcode files."
if prompt_confirm "Move old gcode files to template instance?"; then if prompt_confirm "Move old gcode files to template instance?"; then