0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00
penpot/backend/scripts/prepare-release.sh
mathieu.brunot 8c21aac16e
🔧 Set backend script permissions
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2019-07-13 17:11:20 +02:00

16 lines
334 B
Bash
Executable file

#!/usr/bin/env bash
if [ "$#" -e 0 ]; then
echo "Expecting parameters: 1=path to backend; 2=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;