-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update UpdaterTask.php #9
Conversation
Add Version to file
Not really needed... |
file_put_contents('plugins/'.$this->name.'.phar', $file); | ||
if(!file_exists('plugins/'.$this->name.'.phar')){ | ||
file_put_contents('plugins/'.$this->name.' v'.$this->newversion.'.phar', $file); | ||
if(!file_exists('plugins/'.$this->name.' v'.$this->newversion.'.phar')){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you replace the space with _? @opkiler22789
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salmonger what's the difference? and so works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@opkiler22789 hm wait, I think it's better to make them not havve the version in the name. Just to prevent that the plugin exists multiple times
Closing because I think it's better if the version name is not inside the filename due to the chance of having multiple files of the plugin. |
Add Version to file