puke: use subshell

This commit is contained in:
Dylan Araps 2019-05-13 10:43:49 +03:00
parent 670fbe5715
commit c985b3c85f

5
puke
View File

@ -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}"
}