Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #5 from MatthewCroughan/printer-name-bug-#2
Browse files Browse the repository at this point in the history
Printer name bug, fix #2
  • Loading branch information
MatthewCroughan committed May 14, 2020
2 parents ab0409e + de2f1b9 commit 1699c1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octodash/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jq ".config.octoprint.accessToken |= \"$OCTOPRINT_APIKEY\"" < $FILE > $TMP && mv
# This takes the PRINTER_NAME specified on the balena dashboard and does the same processing that we do with the OCTOPRINT_APIKEY.
# However, it sets a default of Octobalena if one is not provided.

if [[ -n "$PRINTER_NAME" ]]; then
jq ".config.printer.name |= Octobalena" < $FILE > $TMP && mv $TMP $FILE
if [[ -z "$PRINTER_NAME" ]]; then
jq ".config.printer.name |= \"Octobalena\"" < $FILE > $TMP && mv $TMP $FILE
else
jq ".config.printer.name |= \"$PRINTER_NAME\"" < $FILE > $TMP && mv $TMP $FILE
fi
Expand Down

0 comments on commit 1699c1a

Please sign in to comment.