sudar / wp-plugin-in-github

Collection of shell scripts that I am using to manage and deploy WordPress Plugins from github into svn
http://sudarmuthu.com/blog/developing-wordpress-plugins-in-github
76 stars 20 forks source link

deploy-plugin.sh: Unable to proceed after aborted push (tag is already added) #26

Open W3Extensions opened 6 years ago

W3Extensions commented 6 years ago

During the authentication stage, I had to abort the deploy-plugin.sh script. But when I ran the script again, I got an error telling me I couldn't proceed because the version number/tag had already been added. So I had to bump up the version number in my plugin and readme file just to execute the script.

Is there something else I could have done or is this an issue that should be addressed in the script?

sudar commented 6 years ago

@W3Extensions

This script is nothing but a bunch of shell commands. If you quit the script mid-way there is no way to know at which step the script was stopped.

Is there something else I could have done

One thing I have done in the past is to temporarily comment out the commands that are already run in the script file and then re-run the script.

I know it is not ideal, but unfortunately I can't think of any other alternative at this point in time.