Use [[:digit:]] instead of \d

This commit is contained in:
Yoshito Komatsu
2021-11-28 17:08:10 +09:00
parent 8333ae1dc4
commit 0baf39a32a

View File

@@ -332,7 +332,7 @@ mainsail_setup(){
rm -rf *.zip && ok_msg "Done!"
### check for moonraker multi-instance and if multi-instance was found, enable mainsails remoteMode
if [ $(ls /etc/systemd/system/moonraker* | grep -E "moonraker(-\d+)?\.service" | wc -l) -gt 1 ]; then
if [ $(ls /etc/systemd/system/moonraker* | grep -E "moonraker(-[[:digit:]]+)?\.service" | wc -l) -gt 1 ]; then
enable_mainsail_remotemode
fi
}