summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/59-libdvd-pkg
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-02-23 14:54:21 +0100
committeranonym <anonym@riseup.net>2016-02-23 15:35:33 +0100
commit2b04e17ca75baa4e17755ae8ff250e4f148d809a (patch)
tree52ad850a4256b4fe0df6e5aad13559ba3bce321a /config/chroot_local-hooks/59-libdvd-pkg
parent0226644504aa1e9e6085bc5b7737df64a0dd47fb (diff)
Fix paths and cleanup in subshell invocation.
1. We expected the incorrect filename for the deb (_ is inserted before the version, not -) 2. Since we changed directory, we might as well use relative paths. 3. We should avoid removing a directory that is our CWD.
Diffstat (limited to 'config/chroot_local-hooks/59-libdvd-pkg')
-rwxr-xr-xconfig/chroot_local-hooks/59-libdvd-pkg6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/chroot_local-hooks/59-libdvd-pkg b/config/chroot_local-hooks/59-libdvd-pkg
index a6ebcc8..716364a 100755
--- a/config/chroot_local-hooks/59-libdvd-pkg
+++ b/config/chroot_local-hooks/59-libdvd-pkg
@@ -33,7 +33,7 @@ EOF
(
cd "${tmp}"
- equivs-build "${tmp}/libdvd-pkg-${LIBDVD_PKG_VERSION}.control"
- dpkg -i "${tmp}/libdvd-pkg-${LIBDVD_PKG_VERSION}_all.deb"
- rm -R "${tmp}"
+ equivs-build "libdvd-pkg-${LIBDVD_PKG_VERSION}.control"
+ dpkg -i "libdvd-pkg_${LIBDVD_PKG_VERSION}_all.deb"
)
+rm -R "${tmp}"