From c985b3c85fbefd654dfba40adeb42bdfb58a289f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 13 May 2019 10:43:49 +0300 Subject: [PATCH] puke: use subshell --- puke | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/puke b/puke index d003eb56..ba1f7f30 100755 --- a/puke +++ b/puke @@ -73,9 +73,8 @@ pkg_checksum() { 4) continue ;; esac - cd "${src_path%/*}" >/dev/null - sha256sum -- "${src##*/}" || die "Failed to generate checksums." - cd - >/dev/null + (cd "${src_path%/*}" >/dev/null + sha256sum -- "${src##*/}" || die "Failed to generate checksums.") done < sources > "${1-checksums}" }