index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Tasos Sahanidis <tasos@tasossah.com> | 2024-05-04 14:52:46 +0300 |
---|---|---|
committer | Tasos Sahanidis <tasos@tasossah.com> | 2024-05-04 14:52:46 +0300 |
commit | 96472a924f89c4961dfd0a40b1245dcda93567e9 (patch) | |
tree | f2911357e7c6cd9ee66aa4ed7f9960f4ddd80966 /bin/schedule-for-rebuild | |
parent | a3774c747f6a2fcebe94b49c20cefca1263c37cb (diff) |
-rwxr-xr-x | bin/schedule-for-rebuild | 5 |
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/' |