fix: use [[:digit:]] instead of \d (#146)

This commit is contained in:
Yoshito Komatsu
2021-11-29 19:09:24 +09:00
committed by GitHub
parent 8333ae1dc4
commit 1ef9b0f58f

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
}