Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/db-update
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/db-update
parent7e69a472b3af0c66e85986f3d6a284a6e164b9fd (diff)
silence even more shellcheck warnings
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/db-update b/bin/db-update
index d05f69f..74bab79 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -507,12 +507,9 @@ done
# packages which are done
-ls "${work_dir}/package-states" | \
- sed -n '
- /\.done$/{
- s|^\(.*\)\(\(\.[^.]\+\)\{3\}\)\.done$|\1 \1\2|
- p
- }
+find "${work_dir}/package-states" -maxdepth 1 -type f -name '*.done' -printf '%f\n' | \
+ sed '
+ s|^\(.*\)\(\(\.[^.]\+\)\{3\}\)\.done$|\1 \1\2|
' | \
sort > \
"${tmp_dir}/done-packages"