diff options
author | David Spickett <david.spickett@linaro.org> | 2020-04-20 15:43:57 +0100 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2020-04-20 16:58:38 +0100 |
commit | b9ecc76e09e95cd3132f1eef572279c1cec68218 (patch) | |
tree | 926c2b2d6d411ad266f70ee2756083bbbe07c05c /tcwg-cleanup-stale-containers.sh | |
parent | 5bc4a8aa4bb4ec6ffc77d0acce0e3370582760d6 (diff) |
Shellcheck warning fixes
(all error/style level warnings)
SC1035: missing whitespace
SC2068: double quote array expansions
SC2145: argument mixes string and array
SC1066: Don't use $ on the left side of assignments
SC2126: Use grep -c instead of grep|wc
Change-Id: Ia53070d3e2c9aea9f626fdb7b2b5bfc9e1f8e682
Diffstat (limited to 'tcwg-cleanup-stale-containers.sh')
-rwxr-xr-x | tcwg-cleanup-stale-containers.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcwg-cleanup-stale-containers.sh b/tcwg-cleanup-stale-containers.sh index 97d8e1ba..a2d074c8 100755 --- a/tcwg-cleanup-stale-containers.sh +++ b/tcwg-cleanup-stale-containers.sh @@ -115,7 +115,7 @@ do_cleanup_containers () local res local status="0" if [ ${#rm_containers[@]} != 0 ]; then - echo "Containers to ${action_msg}: ${rm_containers[@]}" + echo "Containers to ${action_msg}: ${rm_containers[*]}" if $cleanup_containers; then for container in "${rm_containers[@]}"; do echo "Container to ${action_msg}: $container" |