From 7a5bb393db6af2f63f4b102fd193ff77a2b3ecdd Mon Sep 17 00:00:00 2001 From: Radical Date: Sat, 16 Mar 2024 17:06:03 -0500 Subject: [PATCH] Add check for pacdiff and install pacman-contrib if not found --- ArchUpdater.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ArchUpdater.sh b/ArchUpdater.sh index f2c6b94..e020245 100755 --- a/ArchUpdater.sh +++ b/ArchUpdater.sh @@ -22,6 +22,11 @@ if [ -z "$colordiff_installed" ]; then sudo pacman -S colordiff fi +if [ -z $(which pacdiff) ]; then + echo "Installing pacman-contrib for the pacdiff step later, this will only run the first time you run this script" + sudo pacman -S pacman-contrib +fi + #Create list of -git packages from the aur gitlist=$(pacman -Qqm | grep git | grep -v debug)