summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-23 08:17:39 +0100
committerErich Eckner <git@eckner.net>2018-11-23 08:17:39 +0100
commitcfb0897405225786e01f5bd163088fd170b71d79 (patch)
treeddc245355b57807cb935fb19c0e5724ba39f23c0
parent9cf7c0dbf8331cbe2e0d2081d1e754d7434735f7 (diff)
downloaddevops-cfb0897405225786e01f5bd163088fd170b71d79.tar.xz
extract-link-dependencies: calculate checksum before cd
-rwxr-xr-xextract-link-dependencies2
1 files changed, 1 insertions, 1 deletions
diff --git a/extract-link-dependencies b/extract-link-dependencies
index c229006..38ea1c5 100755
--- a/extract-link-dependencies
+++ b/extract-link-dependencies
@@ -6,11 +6,11 @@ case $(hostname) in
readlink -e "/tmp/${0##*/}."* || \
mktemp -d "${0##*/}.XXXXXXXX" --tmpdir=/tmp
)
- cd "${tmp_dir}"
checksum=$(
sha512sum "$0" | \
awk '{print $1}'
)
+ cd "${tmp_dir}"
for pkgfile in /srv/arch-mirror/arch/arch/archlinux32/pool/*-i686.pkg.tar.xz; do
if [ -f "${pkgfile##*/}.so.needs" ]; then
continue