Lints the executable scripts

This commit is contained in:
Bruno Tavares
2015-05-20 17:16:16 -03:00
parent 7a85a95a54
commit 25069f4877
13 changed files with 67 additions and 62 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash -e
target=${1:-.}
mkdir -p $target{,/roles,/recipes,/files}
touch $target/{README.md,install.sh,roles/.gitkeep,recipes/.gitkeep,files/.gitkeep}
chmod +x $target/install.sh
[ -f $target/.gitignore ] && echo "compile" > $target/.gitignore || echo "compile" >> $target/.gitignore
mkdir -p "$target"{,/roles,/recipes,/files}
touch "$target"/{README.md,install.sh,roles/.gitkeep,recipes/.gitkeep,files/.gitkeep}
chmod +x "$target"/install.sh
echo "compile" >> "$target"/.gitignore