From 907bd31236a1b9ce11702cbd1ec792a07d74ab60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Mon, 30 Apr 2018 11:26:08 +0200 Subject: Correctly (zero-)initialise all locals. --- rotate_tarballs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rotate_tarballs.sh') diff --git a/rotate_tarballs.sh b/rotate_tarballs.sh index f0b81818..f4efaeeb 100755 --- a/rotate_tarballs.sh +++ b/rotate_tarballs.sh @@ -26,7 +26,7 @@ rotate_build() { rotate_build_dates() { local _build_dname="${1}" _dist_dates="${2}" _limit="${3}"; - local _dist_dates_count _dist_dates_count_limit="" _dist_fname="" _nl=" + local _dist_dates_count="" _dist_dates_count_limit="" _dist_fname="" _nl=" "; _dist_dates="$(map "${_nl}" ${_dist_dates} | sort | uniq)"; _dist_dates_count="$(echo "${_dist_dates}" | wc -l)"; if [ "${_dist_dates_count}" -gt "${_limit}" ]; then -- cgit v1.2.3