From 3e29949745d79bc68eb0b57383eedce328dfe91b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 28 Aug 2025 22:00:41 +0200 Subject: [PATCH] Only remove the key if it exists --- migrations/1756410649.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/migrations/1756410649.sh b/migrations/1756410649.sh index d684c1ce..cf444a14 100644 --- a/migrations/1756410649.sh +++ b/migrations/1756410649.sh @@ -8,4 +8,6 @@ if pacman -Q chaotic-mirrorlist >/dev/null; then sudo pacman -Rns --noconfirm chaotic-mirrorlist fi -sudo pacman-key --delete 3056513887B78AEB +if sudo pacman-key --list-keys 3056513887B78AEB >/dev/null 2>&1; then + sudo pacman-key --delete 3056513887B78AEB +fi