diff options
author | anonym <anonym@riseup.net> | 2016-02-23 14:20:55 +0100 |
---|---|---|
committer | anonym <anonym@riseup.net> | 2016-02-23 14:20:55 +0100 |
commit | 316b41429bfdb0d10a2b8cbf8efb4b5754d489c6 (patch) | |
tree | d11461b907714eaa1b52954469a841f648678010 /config/chroot_local-hooks/59-libdvd-pkg | |
parent | 0fe243ca2ad807f10aabd6015feeff8a56d05e64 (diff) |
Lessen scope of subshell invocation.
We only "need" to do it while changing directory. I think the intent
of the subshell is a bit clearer this way.
Diffstat (limited to 'config/chroot_local-hooks/59-libdvd-pkg')
-rwxr-xr-x | config/chroot_local-hooks/59-libdvd-pkg | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/chroot_local-hooks/59-libdvd-pkg b/config/chroot_local-hooks/59-libdvd-pkg index 4f51a9f..05ec7a9 100755 --- a/config/chroot_local-hooks/59-libdvd-pkg +++ b/config/chroot_local-hooks/59-libdvd-pkg @@ -12,13 +12,12 @@ dpkg-reconfigure libdvd-pkg # libdvd-pkg. libdvd-pkg however depends on build-essential, which is # explicitly removed. So instead we build/install a fake libdvd-pkg # without the build-essential dependency to satisfy libdvdcss2. -( - tmp="$(mktemp -d)" - apt-get install --yes equivs +tmp="$(mktemp -d)" +apt-get install --yes equivs - LIBDVD_PKG_VERSION="$(dpkg-query -s libdvd-pkg | grep Version | cut -d ' ' -f2)+fake1" +LIBDVD_PKG_VERSION="$(dpkg-query -s libdvd-pkg | grep Version | cut -d ' ' -f2)+fake1" - cat > "${tmp}/libdvd-pkg-${LIBDVD_PKG_VERSION}.control" << EOF +cat > "${tmp}/libdvd-pkg-${LIBDVD_PKG_VERSION}.control" << EOF Section: multimedia Priority: optional Homepage: https://tails.boum.org/ @@ -32,6 +31,7 @@ Description: (Fake) libdvd-pkg package Provide placeholder to keep libdvdcss2 happy. EOF +( cd "${tmp}" equivs-build "${tmp}/libdvd-pkg-${LIBDVD_PKG_VERSION}.control" dpkg -i "${tmp}/libdvd-pkg-${LIBDVD_PKG_VERSION}_all.deb" |