From 93bfc7d81507be07c5a4de6000c6a9a64287d6f8 Mon Sep 17 00:00:00 2001 From: mollusk Date: Wed, 6 Jul 2016 13:12:10 -0700 Subject: [PATCH] Updated Script: idd.sh - Changed default image search path to /home --- idd.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/idd.sh b/idd.sh index cbd89b9..8801610 100755 --- a/idd.sh +++ b/idd.sh @@ -3,6 +3,7 @@ # Paths MOUNTPATH="/mnt/mediadrive" DEVICEDIR="/dev" +HOMEDIR="/home" # Colors RED='\033[0;31m' @@ -73,10 +74,10 @@ case "$1" in printf "${LCYAN}idd - interactive dd${NC}\n" printf "${LPURPLE}********************************${NC}\n" echo - printf "${LGREEN}Image files (img, iso) in ${HOME}${NC}\n" + printf "${LGREEN}Image files (img, iso) in ${HOMEDIR}${NC}\n" printf "${LBLUE}-------------------------------------------${NC}\n" - find ${HOME} -regex ".*\.\(img\|iso\)" | grep [.iso,.img] + find ${HOMEDIR} -regex ".*\.\(img\|iso\)" | grep [.iso,.img] if [ ! $? = 0 ];then printf "${LRED}No image files found${NC}\n" fi