Commit a3601272 authored by Peter Kovary's avatar Peter Kovary
Browse files

Minor whereisthatguy code style improvemnt

parent f4ca906c
......@@ -81,7 +81,7 @@ function process_output {
if [ "$bare" = true ]; then
echo $host $found
else
echo "Found" $found "at" $host
echo "Found $found at $host"
fi
fi
else
......@@ -89,7 +89,7 @@ function process_output {
if [ "$bare" = true ]; then
echo $host $found
else
echo "Found "$(echo $found | cut -d ' ' -f1)" ("$(echo $found | cut -d ' ' -f2-3)") at "$host
echo "Found $(echo $found | cut -d ' ' -f1) ($(echo $found | cut -d ' ' -f2-3)) at $host"
fi
fi
fi
......@@ -99,7 +99,7 @@ for host in ${hostlist[*]}
do
if ! [[ $exclusions =~ $host ]]
then
process_output $host "$(timeout -k 0.1 $timeout ssh $ssh_opts $host "$command_to_execute" 2>/dev/null)" $all $bare $username &
process_output "$host" "$(timeout -k 0.1 $timeout ssh $ssh_opts $host "$command_to_execute" 2>/dev/null)" &
fi
done
wait >/dev/null 2>&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