Skip to content

Commit 4a69061

Browse files
committed
(refactor): shell scripts code changed
1 parent 2852242 commit 4a69061

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shell-scripts/package.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44
# not properly work in git bash
55
echo 'You should run package.sh from parent folder. eg. ./scripts/package.sh'
66

7+
mkdir free-package
78

8-
rsync -aP ./ ../free-package/ --exclude=node_modules --exclude=vendor --exclude=yarn.lock --exclude=composer.lock --exclude=public/images --exclude=public/js --exclude=shell-scripts --exclude=.git
9+
rsync -aP ./ ./free-package/ --exclude=node_modules --exclude=vendor --exclude=yarn.lock --exclude=composer.lock --exclude=public/images --exclude=public/js --exclude=shell-scripts --exclude=.git --exclude=free-package
910

1011
echo 'folders are compressing...'
1112

1213
# add zip in linux/unix system before use it.
1314
# https://stackoverflow.com/questions/38782928/how-to-add-man-and-zip-to-git-bash-installation-on-windows
1415

15-
zip -r ../free-package.zip ../free-package/
16+
zip -r ./free-package.zip ./free-package/
1617

1718
echo 'Zip Completed!'
1819

19-
rm -d -r ../free-package
20+
rm -d -r ./free-package
2021

2122
echo 'Task Completed!'

0 commit comments

Comments
 (0)