[Updated] idd.sh: Fixed quit function being checked after file checks
This commit is contained in:
parent
0cff8f4962
commit
1df031fe3f
12
idd.sh
12
idd.sh
@ -77,8 +77,8 @@ case "$1" in
|
||||
|
||||
printf "${YELLOW}Copy & paste full file path here: ${NC}"
|
||||
read filepath
|
||||
CheckFile ${filepath}
|
||||
Quit ${filepath}
|
||||
CheckFile ${filepath}
|
||||
clear
|
||||
Options
|
||||
echo
|
||||
@ -89,9 +89,10 @@ case "$1" in
|
||||
echo
|
||||
printf "${YELLOW}Enter name of device${NC} (${LCYAN}example${NC}, ${LBLUE}sdb${NC}): "
|
||||
read devname
|
||||
Quit ${devname}
|
||||
DEVPATH="${DEVICEDIR}/${devname}"
|
||||
CheckDev ${DEVPATH}
|
||||
Quit ${devname}
|
||||
|
||||
|
||||
echo
|
||||
|
||||
@ -126,9 +127,9 @@ case "$1" in
|
||||
|
||||
printf "${YELLOW}Copy & paste full file path here: ${NC}"
|
||||
read filepath
|
||||
Quit ${filepath}
|
||||
CheckFile ${filepath}
|
||||
|
||||
Quit ${filepath}
|
||||
|
||||
clear
|
||||
Options
|
||||
@ -140,11 +141,10 @@ case "$1" in
|
||||
echo
|
||||
printf "${YELLOW}Enter name of device${NC} (${LCYAN}example${NC}, ${LBLUE}sdb${NC}): "
|
||||
read devname
|
||||
|
||||
Quit ${devname}
|
||||
DEVPATH="${DEVICEDIR}/${devname}"
|
||||
CheckDev ${DEVPATH}
|
||||
Quit ${devname}
|
||||
|
||||
|
||||
echo
|
||||
|
||||
printf "${YELLOW}Writing${NC} ${LGREEN}${filepath}${NC} to ${LGREEN}/dev/${devname}${NC}\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user