Changed valid printer name characters

This commit is contained in:
2024-03-05 13:40:39 +01:00
parent 9252e84812
commit 01c6674bdd

View File

@@ -118,9 +118,9 @@ function printer_rename {
exit 1 exit 1
fi fi
if ! grep -qE '^[a-zA-Z0-9_]+$' <<< "${NEW_NAME}"; then if grep -qE '[ \/'\''"?#]' <<< "${NEW_NAME}"; then
echo "Invalid characters in new name '${NEW_NAME}'!" echo "Invalid characters in new name '${NEW_NAME}'!"
echo "Valid characters are: A-Z a-z 0-9 _" echo "Valid characters are anything except \" ' \\ / ? # and spaces"
exit 1 exit 1
fi fi