diff --git a/updates/menu b/updates/menu index f90bad8..0fa10c0 100644 --- a/updates/menu +++ b/updates/menu @@ -21,9 +21,11 @@ options+=("" "") options+=("Edit pacman.conf" "") options+=("Edit mirrorlist" "") options+=("" "") -options+=("Remove db.lck" "rm /var/lib/pacman/db.lck") -options+=("" "") -if [ -! f /usr/bin/downgrade ]; then +if [ -f /var/lib/pacman/db.lck ]; then + options+=("Remove db.lck" "rm /var/lib/pacman/db.lck") + options+=("" "") +fi +if [ ! -f /usr/bin/downgrade ]; then options+=("Install downgrade" "") options+=("" "") fi