Updated Script: idd.sh - Changed default image search path to /home
This commit is contained in:
parent
a0affb8860
commit
93bfc7d815
5
idd.sh
5
idd.sh
@ -3,6 +3,7 @@
|
|||||||
# Paths
|
# Paths
|
||||||
MOUNTPATH="/mnt/mediadrive"
|
MOUNTPATH="/mnt/mediadrive"
|
||||||
DEVICEDIR="/dev"
|
DEVICEDIR="/dev"
|
||||||
|
HOMEDIR="/home"
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
@ -73,10 +74,10 @@ case "$1" in
|
|||||||
printf "${LCYAN}idd - interactive dd${NC}\n"
|
printf "${LCYAN}idd - interactive dd${NC}\n"
|
||||||
printf "${LPURPLE}********************************${NC}\n"
|
printf "${LPURPLE}********************************${NC}\n"
|
||||||
echo
|
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"
|
printf "${LBLUE}-------------------------------------------${NC}\n"
|
||||||
|
|
||||||
find ${HOME} -regex ".*\.\(img\|iso\)" | grep [.iso,.img]
|
find ${HOMEDIR} -regex ".*\.\(img\|iso\)" | grep [.iso,.img]
|
||||||
if [ ! $? = 0 ];then
|
if [ ! $? = 0 ];then
|
||||||
printf "${LRED}No image files found${NC}\n"
|
printf "${LRED}No image files found${NC}\n"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user