diff options
author | Erich Eckner <git@eckner.net> | 2018-11-23 08:17:39 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-23 08:17:39 +0100 |
commit | cfb0897405225786e01f5bd163088fd170b71d79 (patch) | |
tree | ddc245355b57807cb935fb19c0e5724ba39f23c0 | |
parent | 9cf7c0dbf8331cbe2e0d2081d1e754d7434735f7 (diff) | |
download | devops-cfb0897405225786e01f5bd163088fd170b71d79.tar.xz |
extract-link-dependencies: calculate checksum before cd
-rwxr-xr-x | extract-link-dependencies | 2 |
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 |