You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the goal is to put the file besides printer.cfg then it's better to extract the dirname from $PRINTER_CFG. Something like this:
KIAUH_CFG="$(dirname $PRINTER_CFG)/kiauh.cfg"
The text was updated successfully, but these errors were encountered:
looselyrigorous
changed the title
Use of sed when handling filenames causes unwanted behaviour
Use of sed when handling paths causes unwanted behaviour
Dec 11, 2020
This issue is in reference to this line
https://github.com/th33xitus/kiauh/blob/0339f3f4f57ea93d1119a76ea82ac7b684b6ec26/scripts/functions.sh#L300
The user that I'm installing klipper and co to is called
printeruser
, which is then renamed tokiauhuser
, causing the script to fail.If the goal is to put the file besides printer.cfg then it's better to extract the dirname from
$PRINTER_CFG
. Something like this:KIAUH_CFG="$(dirname $PRINTER_CFG)/kiauh.cfg"
The text was updated successfully, but these errors were encountered: