From 1df031fe3fb88e2e2b27e55793497094d3ad5105 Mon Sep 17 00:00:00 2001 From: mollusk Date: Thu, 7 Jul 2016 18:19:08 -0700 Subject: [PATCH] [Updated] idd.sh: Fixed quit function being checked after file checks --- idd.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/idd.sh b/idd.sh index 8d2d521..384a32c 100755 --- a/idd.sh +++ b/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"