From cf921f108712d075fc08b659253316a1e0d8496d Mon Sep 17 00:00:00 2001 From: Mollusk Date: Thu, 29 Oct 2026 14:59:00 -0400 Subject: [PATCH] idd.sh: only write to the device on an explicit y Co-Authored-By: Claude Opus 5.5 --- idd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idd.sh b/idd.sh index ed79592..2f7619c 100755 --- a/idd.sh +++ b/idd.sh @@ -64,7 +64,7 @@ ConfirmWrite(){ printf "${YELLOW}[y/n]: ${NC}" read choice - if [ "${choice}" = "n" ];then + if [ "${choice}" != "y" ] && [ "${choice}" != "Y" ];then echo printf "${LRED}Aborted!${NC}\n" exit 0; @@ -99,7 +99,7 @@ FindMgr(){ dnf -y install pv elif which pacman >/dev/null 2>&1;then - pacman -Sy pv + pacman -S --needed pv elif which xbps-install >/dev/null 2>&1;then xbps-install -Sy pv