From 96472a924f89c4961dfd0a40b1245dcda93567e9 Mon Sep 17 00:00:00 2001 From: Tasos Sahanidis Date: Sat, 4 May 2024 14:52:46 +0300 Subject: bin/schedule-for-rebuild: Fix some shellcheck issues --- bin/schedule-for-rebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/schedule-for-rebuild') diff --git a/bin/schedule-for-rebuild b/bin/schedule-for-rebuild index 9c2949d..cf2299e 100755 --- a/bin/schedule-for-rebuild +++ b/bin/schedule-for-rebuild @@ -482,8 +482,10 @@ if [ ! -s "${tmp_dir}/pkgbases" ]; then exit fi +# shellcheck disable=SC2016 awkcmd='!seen[$0]++' if ${latest_package_only}; then + # shellcheck disable=SC2016 awkcmd='$5!="community" && $5!="build-support" && !seen[$2]++' fi tac "${tmp_dir}/pkgbases" | awk "${awkcmd}" | tac \ @@ -492,7 +494,7 @@ tac "${tmp_dir}/pkgbases" | awk "${awkcmd}" | tac \ if ${interactive}; then echo "Which packages to rebuild? (Comma separated; Empty means all)" nl "${tmp_dir}/pkgbases" - read -p "Choice: " pkg_rebuild_choice + read -r -p "Choice: " pkg_rebuild_choice if [ -n "$pkg_rebuild_choice" ]; then readarray -td, pkg_rebuild_choice_array < <( printf '%s' "$pkg_rebuild_choice" | sed 's/\s//g;s/,\{2,\}/,/g' ) @@ -504,7 +506,6 @@ fi if ${update}; then cut -d' ' -f 2,3,4,5 "${tmp_dir}/pkgbases" \ | while read -r pkgbase git_rev git_mod_rev repo; do - success=false # shellcheck disable=SC2154 printf '%s ' "${pkgbase}" "${git_rev}" "${git_mod_rev}" "${repo_heads__archlinux32}" "${repo}" \ | sed 's/ $/\n/' -- cgit v1.2.3-70-g09d2