fix: grep pattern changed to read fluidd version again

This commit is contained in:
th33xitus
2020-12-20 16:23:03 +01:00
committed by GitHub
parent 0339f3f4f5
commit 06eb86efd7

View File

@@ -398,7 +398,7 @@ read_local_fluidd_version(){
unset FLUIDD_VER_FOUND
FLUIDD_APP_FILE=$(find $FLUIDD_DIR/js -name "app.*.js" 2>/dev/null)
if [ ! -z $FLUIDD_APP_FILE ]; then
FLUIDD_LOCAL_VER=$(grep -o -E '"setVersion",".+"' $FLUIDD_APP_FILE | cut -d'"' -f4)
FLUIDD_LOCAL_VER=$(grep -o -E '"version/setVersion",".+"' $FLUIDD_APP_FILE | cut -d'"' -f4)
FLUIDD_VER_FOUND="true"
else
FLUIDD_VER_FOUND="false" && unset FLUIDD_LOCAL_VER