From 35bb21c40f95b2eb3a8ed652f2f01b1e1e4c4586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 4 Nov 2024 22:47:37 +0100 Subject: [PATCH] Fix shellcheck issues --- rebuild-unstable | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rebuild-unstable b/rebuild-unstable index a3aa16a..9932e30 100755 --- a/rebuild-unstable +++ b/rebuild-unstable @@ -3,7 +3,8 @@ readonly THISDIR=$(dirname "$0") readonly TIMETAG="$(date +%Y%m%d%H%M)" -readonly PACKAGES="moulinette SSOwat yunohost yunohost-admin yunohost-portal" +readonly PACKAGES=(moulinette SSOwat yunohost yunohost-admin yunohost-portal) +readonly DISTRIBS=(bookworm) readonly FORCE="false" source "$THISDIR/config/config" @@ -12,10 +13,8 @@ mkdir -p "$LAST_BUILDS_CACHE" function main() { - for PACKAGE in $PACKAGES; - do - for DISTRIB in "bookworm"; - do + for PACKAGE in "${PACKAGES[@]}"; do + for DISTRIB in "${DISTRIBS[@]}"; do echo "-------------------------------------" echo "Looking for update in ${PACKAGE} for ${DISTRIB}... "