Fix the pacdiff invocation so it correctly runs with sudo and with the colordiff environment variable

This commit is contained in:
2024-03-14 20:17:23 -05:00
parent 66444198f9
commit d720665ffa
2 changed files with 10 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
cd "$(dirname "$0")"
#Check to make sure colordiff installed for the pacdiff step, install it if not, and export it as the editor
export DIFFPROG=colordiff
#export DIFFPROG=colordiff
colordiff_installed=$(which colordiff)
if [ -z "$colordiff_installed" ]; then
@@ -23,7 +23,7 @@ yay -Syu
echo "Running pacdiff to check for any pacnew files that need to be dealt with"
#Pacdiff to check for pacnews to deal with
pacdiff
sudo DIFFPROG=colordiff pacdiff
#Update flatpaks
echo "Running sudo update flatpak"