move to zsh

This commit is contained in:
Maxim Bachinsky 2019-06-14 12:58:01 +03:00
parent 0aac2976a7
commit 90ad1399ad
1 changed files with 6 additions and 3 deletions

View File

@ -1,10 +1,10 @@
#!/bin/sh
#!/bin/zsh
PROJECT_NAME=$1
SRC_FOLDER_NAME=${PROJECT_NAME}-src-$(date +%F)
SRC_DIR=/tmp/${SRC_FOLDER_NAME}
PLATFORMS=${@:2}
PLATFORMS=("$@")
clone_platform() {
PROJECT_DIR=$1
@ -18,10 +18,13 @@ cd ${SRC_DIR}
for platform in ${PLATFORMS}
do
if [ "$platform" != "$PROJECT_NAME" ]
then
clone_platform ${PROJECT_NAME} ${platform}
fi
done
find . -name ".git*" -print0 | xargs -0 rm -rf
zip -r ${SRC_FOLDER_NAME}.zip .
open .
open .