Created
September 22, 2016 08:34
-
-
Save neworld/245316ddae0fd779060401107be78e8f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copy templates to Android Studio in default location | |
TMP_PATH=`pwd` | |
TEMPLATES_PATH="/Applications/Android Studio.app/Contents/plugins/android/lib/templates/other" | |
DIRS=`find $TMP_PATH -type d -maxdepth 1 -not -name '.*' -not -path $TMP_PATH` | |
for f in $DIRS | |
do | |
DIR=$(basename $f) | |
DEST=$TEMPLATES_PATH/$DIR | |
rm -r -f "$DEST" | |
cp -r "$f" "$TEMPLATES_PATH" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment