Fix the pacdiff invocation so it correctly runs with sudo and with the colordiff environment variable
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user