From 44410e62fe988939136222165da474bcf2d44191 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 19 Sep 2017 06:37:06 +0200 Subject: bin/db-update: bugfix if list(s) is/are empty --- bin/db-update | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin/db-update') diff --git a/bin/db-update b/bin/db-update index 0016436..427956a 100755 --- a/bin/db-update +++ b/bin/db-update @@ -559,6 +559,9 @@ clean_up_lock_file() { # testing -> stable while read -r package; do + if [ -z "${package}" ]; then + continue + fi printf '%s %s %s\n' \ "${package}" \ "$(official_or_community "${package}" 'testing')" \ @@ -570,6 +573,9 @@ done < \ # staging -> testing while read -r package; do + if [ -z "${package}" ]; then + continue + fi printf '%s %s %s\n' \ "${package}" \ "$(official_or_community "${package}" 'staging')" \ -- cgit v1.2.3-54-g00ecf