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 d06a0bb501
🐛 Fix control on entry parameters
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2019-06-23 19:15:14 +02:00

16 lines
355 B
Bash

#!/usr/bin/env bash
if [ "$#" -ne 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;