0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 16:30:37 -05:00
penpot/backend/scripts/prepare-release.sh
mathieu.brunot c6b540868f
🚧 Helper script to prepare back dist
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2019-06-23 18:47:33 +02:00

15 lines
357 B
Bash

#!/usr/bin/env bash
if [ ! -d "$1" ] || [ ! -d "$2" ]; then
echo "Expecting path to backend and destination directory"
exit 1
fi
rm -rf $2 || exit 1;
rsync -avr \
--exclude="/test" \
--exclude="/resources/public/media" \
--exclude="/target" \
--exclude="/scripts" \
--exclude="/.*" \
$1 $2;