Fix repeated fingerprint setup
This commit is contained in:
@@ -53,12 +53,12 @@ echo -e "\e[32mSetting up fingerprint scanner for authentication.\n\e[0m"
|
|||||||
# Install required packages
|
# Install required packages
|
||||||
echo "Installing required packages..."
|
echo "Installing required packages..."
|
||||||
|
|
||||||
|
installed_libfprint=$(pacman -Qq libfprint 2>/dev/null || true)
|
||||||
|
|
||||||
# libfprint-git provides+conflicts libfprint; pacman -S --noconfirm
|
# libfprint-git provides+conflicts libfprint; pacman -S --noconfirm
|
||||||
# defaults the conflict prompt to N and aborts. Pre-remove libfprint
|
# defaults the conflict prompt to N and aborts. Pre-remove the exact
|
||||||
# with -Rdd so the install goes silent. -Rdd (not omarchy-pkg-drop's
|
# libfprint package, but not an installed provider like libfprint-git.
|
||||||
# -Rns) is required because fprintd requires libfprint; the dep is
|
if [[ $installed_libfprint == "libfprint" ]]; then
|
||||||
# re-satisfied immediately by libfprint-git's provides=libfprint.
|
|
||||||
if omarchy-pkg-present libfprint; then
|
|
||||||
sudo pacman -Rdd --noconfirm libfprint
|
sudo pacman -Rdd --noconfirm libfprint
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user