From 04aa904df66ee05d08554e5a3e1e5e193633b289 Mon Sep 17 00:00:00 2001 From: pml68 Date: Wed, 3 Sep 2025 00:58:13 +0200 Subject: fix: only run `git diff` when _update has pulled changes --- aur | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aur b/aur index af953c4..b63568f 100755 --- a/aur +++ b/aur @@ -22,12 +22,14 @@ _update() { for dir in ~/.aur/*; do cd "$dir" || continue - if [[ $(git pull) != "Already up to date." ]] || [[ "${1-}" == "-f" ]] || [[ "$dir" == *-git && "${1-}" == "-g" ]]; then + if [[ $(git pull) != "Already up to date." ]]; then git diff "@{1}.." read -p "Proceed with installation? [Y/n] " proceed if [[ -z "$proceed" ]] || [[ "$proceed" == "Y" ]] || [[ "$proceed" == "y" ]]; then makepkg -si ; _clean fi + elif [[ "${1-}" == "-f" ]] || [[ "$dir" == *-git && "${1-}" == "-g" ]]; then + makepkg -si ; _clean fi done } -- cgit v1.2.3