Housekeeping resotre had a extra line and a change to restore process

This commit is contained in:
kake26 2024-08-09 15:03:49 -05:00
parent d74929f654
commit 227c83867c
Signed by: kake26
GPG key ID: E8AFC43591876B4D
4 changed files with 17 additions and 3 deletions

View file

@ -73,7 +73,7 @@ function copy_config() {
dpkg --get-selections > $tmpdir/installed_packages
cp ./restore.deb.bash $tmpdir/restore.bash
#apt list --installed | grep ',local]' | awk -F/ '{print $1}' >> $tmpdir/exclusions
apt list --installed | grep -q ',local]' && apt list --installed | grep ',local]' | awk -F/ '{print $1}' >> "$tmpdir/exclusions"
apt list --installed | grep ',local]' | awk -F/ '{print $1}' >> "$tmpdir/exclusions" # best way to do this
fi