Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/common-functions
diff options
context:
space:
mode:
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-xbin/common-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 2d15f5e..4befce0 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -2,6 +2,8 @@
# contains functions used by more than one script
+# shellcheck disable=SC2039
+
if [ -z "${base_dir}" ]; then
# just to make shellcheck happy
. 'conf/default.conf'
@@ -64,6 +66,7 @@ find_repository_with_commit() {
local repository
for repository in ${repo_names}; do
+ # shellcheck disable=SC2016
if [ "$(eval git -C "$(printf '"${repo_paths__%s}"' "${repository}")" cat-file -t '"$1"' 2> /dev/null)" = "commit" ]; then
echo "${repository}"
return 0
@@ -399,6 +402,7 @@ remove_old_package_versions() {
local pkgname="${package%-*-*-*.pkg.tar.xz}"
+ # shellcheck disable=SC2046
${master_mirror_rsync_command} \
--recursive \
--delete \