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:
authorErich Eckner <git@eckner.net>2017-08-23 21:47:11 +0200
committerErich Eckner <git@eckner.net>2017-08-23 21:47:11 +0200
commit1061c920833a562e02584aa70e7c889a734139d8 (patch)
tree013b6407718f469e98ffcb2f1d0970895a4c4af2 /bin/common-functions
parent7e69a472b3af0c66e85986f3d6a284a6e164b9fd (diff)
silence even more shellcheck warnings
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-xbin/common-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/common-functions b/bin/common-functions
index b2819b2..2d15f5e 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -221,7 +221,7 @@ delete_old_metadata() {
local current_metadata
current_metadata=$(
- ls "${work_dir}/package-infos" | \
+ find "${work_dir}/package-infos" -maxdepth 1 -printf '%f\n' | \
sed '
s|\.[^.]\+$||
s|\.\([^.]\+\)\.\([^.]\+\)\.\([^.]\+\)$| \1 \2 \3|
@@ -234,7 +234,7 @@ delete_old_metadata() {
echo "${current_metadata}"
# package-states should stay
- ls -1 "${work_dir}/package-states" | \
+ find "${work_dir}/package-states" -maxdepth 1 -printf '%f\n' | \
sed '
s|\.\([^.]\+\)\.\([^.]\+\)\(\.[^.]\+\)\.\([^.]\+\)$| \1 \2 \3|
' | \