Created
January 29, 2024 13:47
-
-
Save xaiyadev/5912d5e676c93babfe1712e734fd07df to your computer and use it in GitHub Desktop.
Small script for creating a zip file for a Shopware 6 plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if ! [ -z "$1" ] | |
| then | |
| pluginName="$(basename $1)" | |
| mkdir $pluginName | |
| cp -r $1/src $pluginName/ | |
| cp $1/composer.json $pluginName/ | |
| zip -r "$pluginName.zip" $pluginName/ | |
| rm -r $pluginName | |
| echo "created $pluginName.zip !" | |
| else | |
| echo "You need to enter the path of the Source Code Folder you want to migrate" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment