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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user