forked from kiss-community/repo
puke: use subshell
This commit is contained in:
parent
670fbe5715
commit
c985b3c85f
5
puke
5
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}"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user