#!/bin/bash

mkdir -p dist

cd extension

rm ../dist/extension.zip

zip -r ../dist/extension.zip *

#!/bin/bash

mkdir -p dist

cd extension

if [ -f "../dist/extension.zip" ]; then
  rm ../dist/extension.zip
fi

zip -r ../dist/extension.zip *

Check existence extension.zip before remove
Check existence extension.zip before remove
