Skip to content

Instantly share code, notes, and snippets.

@xaiyadev
Created January 29, 2024 13:47
Show Gist options
  • Select an option

  • Save xaiyadev/5912d5e676c93babfe1712e734fd07df to your computer and use it in GitHub Desktop.

Select an option

Save xaiyadev/5912d5e676c93babfe1712e734fd07df to your computer and use it in GitHub Desktop.
Small script for creating a zip file for a Shopware 6 plugin
#!/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