1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-09-28 12:22:39 -06:00
kiss/contrib
aabacchus c6c851b645 kiss-chroot: fix trap
If the chroot is exited with nonzero status, kiss-chroot runs `die
chroot failed`. Then, die runs `exit 1` which causes the trap to
execute. However, in this scope, "$@" is "chroot failed", so the trap
evaluates $1 to be "chroot" rather than the mountpoint given to the
kiss-chroot script. Then, the trap tries to unmount "chroot/dev" etc
rather than the true mountpoint.

This patch uses double quotes rather than single when setting the trap,
so that $1 is expanded then and the mountpoint is stored for when the
trap is called.
2022-08-05 21:24:43 +05:30
..
kiss-chroot kiss-chroot: fix trap 2022-08-05 21:24:43 +05:30
kiss-depends
kiss-fork
kiss-help
kiss-link
kiss-maintainer kiss-maintainer: fix CRUX-style usage 2022-08-05 21:24:43 +05:30
kiss-manifest
kiss-new
kiss-orphans kiss-orphans: Performance improvements. 2021-09-26 15:00:38 +03:00
kiss-outdated kiss-outdated: libseat -> seatd 2021-11-07 16:33:27 +02:00
kiss-owns
kiss-preferred
kiss-revdepends kiss-revdepends: Fix non-posix grep usage 2021-10-05 06:17:38 +03:00
kiss-size kiss-size: fix for packages containing files with quotes in filenames 2022-08-05 21:24:42 +05:30