From 54681627678c9df7588fc2cad8d7692c7aa84e7e Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 21 Mar 2018 23:50:19 +0800 Subject: [PATCH] feat: add installation script --- .travis.yml | 1 + install.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 install.sh diff --git a/.travis.yml b/.travis.yml index 2a9d37d..247c13d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,7 @@ before_deploy: - cp ./yarn-deps/target/release/yarn-deps dist/ - cp ./yarn-scripts/target/release/yarn-scripts dist/ - cp ./yarn-autocompletions.plugin.zsh dist/ + - cp ./install.sh dist/ - cp ./README.md dist/ - cp ./LICENSE dist/ - cd dist diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..e4dd01c --- /dev/null +++ b/install.sh @@ -0,0 +1,8 @@ +if [ ! -d $1/plugins/yarn-autocompletions ] +then + mkdir $1/plugins/yarn-autocompletions +fi + +cp ./yarn-autocompletions.plugin.zsh $1/plugins/yarn-autocompletions +cp ./yarn-deps $1/plugins/yarn-autocompletions +cp ./yarn-scripts $1/plugins/yarn-autocompletions