File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ main(){
2828
2929 # Get "Tested up to" version from readme.txt
3030 if [[ -f " ${PLUGIN_PATH} /readme.txt" ]]; then
31- TESTED_UP_TO=$( grep -i " Tested up to:" readme.txt | tr -d ' \r\n' | awk -F ' : ' ' { print $2 }' )
31+ TESTED_UP_TO=$( grep -i " Tested up to:" ${PLUGIN_PATH} / readme.txt | tr -d ' \r\n' | awk -F ' : ' ' { print $2 }' )
3232 else
3333 echo " readme.txt not found."
3434 exit 1
@@ -46,11 +46,11 @@ main(){
4646 if [[ $COMPARE_VERSIONS -eq -1 ]]; then
4747 echo " Tested up to version ($TESTED_UP_TO ) is less than current WordPress version ($CURRENT_WP_VERSION )."
4848 echo " Updating readme.txt with new Tested up to version."
49- sed -i ' ' -E " s/(Tested up to: ).*/\1$CURRENT_WP_VERSION /" readme.txt
49+ sed -i ' ' -E " s/(Tested up to: ).*/\1$CURRENT_WP_VERSION /" ${PLUGIN_PATH} / readme.txt
5050
5151 # Update README.md if it exists
5252 if [[ -f " ${PLUGIN_PATH} /README.md" ]]; then
53- sed -i ' ' -E " s/(Tested up to: ).*/\1$CURRENT_WP_VERSION /" README.md
53+ sed -i ' ' -E " s/(Tested up to: ).*/\1$CURRENT_WP_VERSION /" ${PLUGIN_PATH} / README.md
5454 echo " README.md updated with new Tested up to version."
5555 fi
5656
You can’t perform that action at this time.
0 commit comments