Merge pull request #2 from zimbatm/shellcheck

fixes shellcheck issues
This commit is contained in:
Robert Hensing 2018-12-18 10:49:50 +01:00 committed by GitHub
commit bcc0f6e948
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,17 +105,17 @@ modules="["
for file in "${files[@]}"; do for file in "${files[@]}"; do
case "$file" in case "$file" in
/*) /*)
modules="$modules (/. + $(printf '"%q"' $file))" modules="$modules (/. + $(printf '"%q"' "$file"))"
;; ;;
*) *)
modules="$modules (./. + $(printf '"/%q"' $file))" modules="$modules (./. + $(printf '"/%q"' "$file"))"
;; ;;
esac esac
done done
modules="$modules ]" modules="$modules ]"
debug modules: $modules debug modules: "$modules"
old_IFS="$IFS" old_IFS="$IFS"
IFS="" IFS=""
@ -123,7 +123,7 @@ args=(
) )
IFS="$old_IFS" IFS="$old_IFS"
for arg in "${args[@]}"; do for arg in "${args[@]}"; do
echo arg: $arg echo "arg: $arg"
done done
do_build() { do_build() {
@ -151,7 +151,7 @@ do_repl() {
Launch a repl for you, using a temporary file: $REPL_TMP. Launch a repl for you, using a temporary file: $REPL_TMP.
This loads the configuration from the modules This loads the configuration from the modules
$files ${files[*]}
To get started: To get started:
@ -182,7 +182,7 @@ do_repl_cleanup() {
case "$command" in case "$command" in
cat) cat)
do_build do_build
cat $docker_compose_yaml | jq . jq . < "$docker_compose_yaml"
;; ;;
repl) repl)
do_repl do_repl