Last active
October 25, 2019 22:43
-
-
Save chonki/a623800cba3e7912594232c8f8ca86e8 to your computer and use it in GitHub Desktop.
This file contains 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/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