Restrict zip to current dir

This commit is contained in:
Nabeel Shahzad 2021-08-07 11:37:26 -04:00
parent 2756c34702
commit fe87f21599

View File

@ -82,8 +82,8 @@ find $BASE_DIR/../ -type d -maxdepth 2
tar -czf $TAR_NAME -C $BASE_DIR .
sha256sum $TAR_NAME >"$TAR_NAME.sha256"
cd $BASE_DIR/phpvms;
zip -r $ZIP_NAME .* *
cd $BASE_DIR;
zip -r $ZIP_NAME ./.* ./*
sha256sum $ZIP_NAME >"$ZIP_NAME.sha256"
mv $ZIP_NAME /tmp
mv "$ZIP_NAME.sha256" /tmp