Skip to content

Instantly share code, notes, and snippets.

@chonki
Last active October 25, 2019 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chonki/a623800cba3e7912594232c8f8ca86e8 to your computer and use it in GitHub Desktop.
Save chonki/a623800cba3e7912594232c8f8ca86e8 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
#Script taken from to David Bilay at https://raw.githubusercontent.com/dYalib/snips-docker/master/start-snips.sh
#goto skill directory
cd /var/lib/snips/skills
rm -rf *
snips-template render
#download required skills from git
for url in $(awk '$1=="url:" {print $2}' /usr/share/snips/assistant/Snipsfile.yaml); do
git clone $url
done
#be shure we are still in the skill directory
cd /var/lib/snips/skills
#run setup.sh for each skill.
find . -maxdepth 1 -type d -print0 | while IFS= read -r -d '' dir; do
cd "$dir"
if [ -f setup.sh ]; then
echo "Run setup.sh in "$dir
#run the scrips always with bash
bash ./setup.sh
fi
cd /var/lib/snips/skills
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment