We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38da4e8 commit 046c540Copy full SHA for 046c540
deploy.sh
@@ -145,7 +145,7 @@ fi
145
146
# Check version in readme.txt is the same as plugin file
147
NEWVERSION1=$(grep "^Stable tag:" "$GITPATH"/readme.txt | awk -F' ' '{print $NF}')
148
-NEWVERSION2=$(grep "^Version:" "$GITPATH"/"$MAINFILE" | awk -F' ' '{print $NF}')
+NEWVERSION2=$(grep -E "^[[:space:]]*\*?[[:space:]]*Version:" "$GITPATH"/"$MAINFILE" | awk -F' ' '{print $NF}')
149
echo "readme.txt version: $NEWVERSION1"
150
echo "$MAINFILE version: $NEWVERSION2"
151
0 commit comments