diff options
author | jomo <github@jomo.tv> | 2015-08-13 00:11:35 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2015-08-13 00:11:35 +0200 |
commit | ae02f14c4b51a40fd4e0dbb4e8fa1b25b3cfa6d9 (patch) | |
tree | 26cb4114854c3a4e03f33132090533ae0a32ddad /setup.sh | |
parent | 9e3cd6828e5c314fb0cb37a9fb3ba18c4b5cc48f (diff) |
duplicate sample files on setup
Diffstat (limited to 'setup.sh')
-rwxr-xr-x | setup.sh | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -76,7 +76,14 @@ echo -e "\n> Pulling redstoner-utils ..." git clone -q "git@github.com:RedstonerServer/redstoner-utils.git" "redstoner-utils.py.dir" > /dev/null echo -e "\n> All plugins downloaded" -cd ".." + +cd "redstoner-utils.py.dir" +echo -e "\n> Duplicating sample files" +for file in ls ./*.example; do + cp -v "$file" "$(echo "$file" | rev | cut -d "." -f 2- | rev)" +done + +cd "../.." mkdir -v "lib" cd "lib" |