From a69d966c2cafe490d79cf63be1c5cb4de9a37475 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sun, 7 Jul 2024 16:04:55 -0400 Subject: [PATCH] Fix diff.list usage in tmpdir --- scripts/os_debian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/os_debian b/scripts/os_debian index c415359..adfeaf7 100755 --- a/scripts/os_debian +++ b/scripts/os_debian @@ -104,7 +104,7 @@ read -p "About to install the system packages per the backup. Do you want to con if [[ "\$promptPkgs" =~ ^[Yy] ]]; then echo "Yes" comm --nocheck-order -23 InstallOnly.list <(apt-mark showmanual|sort) | grep -Ev 'linux-image|linux-headers' > "\${TMPDIR}/diff.list" - apt-get --simulate install \$(cat diff.list) |& awk '/^E: Unable to locate package / {print \$NF}' | sort > "\${TMPDIR}/diff.fail" + apt-get --simulate install \$(cat "\${TMPDIR}/diff.list") |& awk '/^E: Unable to locate package / {print \$NF}' | sort > "\${TMPDIR}/diff.fail" comm --nocheck-order -23 "\${TMPDIR}/diff.list" "\${TMPDIR}/diff.fail" | xargs apt-get install read -p "Did everything above look okay and do you want to proceed? [Y/n] " -n 1 -sr promptPkgsDo