From f46271e7749991402234575bde0fde6c5fd911e5 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Sun, 14 Dec 2025 12:59:18 +0100 Subject: [PATCH] Explicitly use bash with fakeroot If no command is specified, fakeroot will default to using whatever login shell the user has. In my case, this is nushell, which breaks the heredoc script piped into fakeroot. --- debtap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debtap b/debtap index 3b5d0a1..e265099 100755 --- a/debtap +++ b/debtap @@ -3259,7 +3259,7 @@ bsdtar -czf .MTREE --format=mtree --options='!all,use-set,type,uid,gid,mode,time # Creating final package in a fakeroot environment if [[ $Pkgbuild != set ]]; then echo -e "\n${lightgreen}==>${NC} ${bold}Creating final package...${normal}" -fakeroot << EOF +fakeroot /usr/bin/bash << EOF tar --force-local -pcf $(grep '^pkgname =' .PKGINFO | gawk '{print $3}')-$(grep '^pkgver =' .PKGINFO | gawk '{print $3}')-$(grep '^arch =' .PKGINFO | gawk '{print $3}').pkg.tar --exclude='pkgbuildinstallations*' * .PKGINFO .INSTALL .MTREE 2> /dev/null zstd -q -T0 --ultra -15 *.tar EOF