Skip to content

Commit 7140085

Browse files
authored
pacman-helper quick_*: avoid asking for confirmation to delete Git objs (#684)
When removing the temporary Git repository at the end of a successful run, we do not want the user to say "y" to each and every Git object or pack removal... I hit this recently when I had to clean up my own mess after letting my GPG key (with which the Pacman database is signed) expire...
2 parents 304b5f8 + d98b123 commit 7140085

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pacman-helper.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ quick_action () { # <action> <file>...
630630
fi
631631

632632
# Remove the temporary directory
633+
chmod -R +w "$dir/.git/objects" &&
633634
rm -r "$dir" ||
634635
die "Could not remove $dir/"
635636
}

0 commit comments

Comments
 (0)