idd.sh: only write to the device on an explicit y

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 14:59:00 -04:00
co-authored by Claude Opus 5.5
parent 64bdc65344
commit cf921f1087
+2 -2
View File
@@ -64,7 +64,7 @@ ConfirmWrite(){
printf "${YELLOW}[y/n]: ${NC}" printf "${YELLOW}[y/n]: ${NC}"
read choice read choice
if [ "${choice}" = "n" ];then if [ "${choice}" != "y" ] && [ "${choice}" != "Y" ];then
echo echo
printf "${LRED}Aborted!${NC}\n" printf "${LRED}Aborted!${NC}\n"
exit 0; exit 0;
@@ -99,7 +99,7 @@ FindMgr(){
dnf -y install pv dnf -y install pv
elif which pacman >/dev/null 2>&1;then elif which pacman >/dev/null 2>&1;then
pacman -Sy pv pacman -S --needed pv
elif which xbps-install >/dev/null 2>&1;then elif which xbps-install >/dev/null 2>&1;then
xbps-install -Sy pv xbps-install -Sy pv