mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-17 12:34:29 +05:00
fix: grep pattern changed to read fluidd version again
This commit is contained in:
@@ -398,7 +398,7 @@ read_local_fluidd_version(){
|
|||||||
unset FLUIDD_VER_FOUND
|
unset FLUIDD_VER_FOUND
|
||||||
FLUIDD_APP_FILE=$(find $FLUIDD_DIR/js -name "app.*.js" 2>/dev/null)
|
FLUIDD_APP_FILE=$(find $FLUIDD_DIR/js -name "app.*.js" 2>/dev/null)
|
||||||
if [ ! -z $FLUIDD_APP_FILE ]; then
|
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"
|
FLUIDD_VER_FOUND="true"
|
||||||
else
|
else
|
||||||
FLUIDD_VER_FOUND="false" && unset FLUIDD_LOCAL_VER
|
FLUIDD_VER_FOUND="false" && unset FLUIDD_LOCAL_VER
|
||||||
|
|||||||
Reference in New Issue
Block a user