Commit 5e365398 authored by Mattia Rizzolo's avatar Mattia Rizzolo

deploy: make extra sure we're iterating over single files

should be default behaviour for ls when not run in a terminal, but
better be sure...
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 233a67d3
...@@ -39,7 +39,7 @@ if [[ ! -d "${env}" ]]; then ...@@ -39,7 +39,7 @@ if [[ ! -d "${env}" ]]; then
echo echo
echo "available environments:" echo "available environments:"
for available in `ls "${DIR_ENVIRONMENTS}"`; do for available in `ls -1 "${DIR_ENVIRONMENTS}"`; do
echo " - ${available}" echo " - ${available}"
done done
exit 1 exit 1
...@@ -49,7 +49,7 @@ if [[ ! -f "${playbook_file}" ]]; then ...@@ -49,7 +49,7 @@ if [[ ! -f "${playbook_file}" ]]; then
echo echo
echo "available playbooks:" echo "available playbooks:"
for available in `ls "${DIR_PLAYBOOKS}"`; do for available in `ls -1 "${DIR_PLAYBOOKS}"`; do
echo " - `echo "${available}" | sed 's/\.yml$//'`" echo " - `echo "${available}" | sed 's/\.yml$//'`"
done done
exit 1 exit 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment