Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2024-05-04 14:52:46 +0300
committerTasos Sahanidis <tasos@tasossah.com>2024-05-04 14:52:46 +0300
commit96472a924f89c4961dfd0a40b1245dcda93567e9 (patch)
treef2911357e7c6cd9ee66aa4ed7f9960f4ddd80966
parenta3774c747f6a2fcebe94b49c20cefca1263c37cb (diff)
bin/schedule-for-rebuild: Fix some shellcheck issues
-rwxr-xr-xbin/schedule-for-rebuild5
1 files changed, 3 insertions, 2 deletions
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/'