|
Need an extra set of eyes to help me with the congested "if statement"..can you see where I might be bugging?
86 Volume_Date_Returns()
87 {
88 echo "Return of all '"expired"' ERV tapes '(y/n)'"
89 if [ $response = y ]; then
74 {
75 echo "Enter Volumes to be returned"; read input; echo $input
76 mminfo -q volume=$input -r volume,location,pool,volretent > $1
77 echo "Is this the volume you would like to return"
78 read response
79 if [ $response = y ]; then
80 echo " Please return the follow tapes $1" >$RETURN_REQUEST
81 else
82 echo "incorrect response"
83 exit
84 fi
85 }
86 Volume_Date_Returns()
87 {
88 echo "Return of all '"expired"' ERV tapes '(y/n)'"
89 if [ $response = y ]; then
90 mminfo -q volrent=expired -q location=ERV -r volume,volretent,pool &1>$TMP/vol.out
91 echo " Is this list the correct list of tapes to be returned?"
92 if [$response = y ] then
93 echo "List will be emailed to you"
94 else
95 if [$response = n "; then
96 echo "Enter date of tapes to be returned '(mm/dd/yy or enter (T)oday, (Y)esterday, (L)ast week)'"
97 read dates
98 mminfo -q volretent='$dates'-q location=ERV -r volume, volrent,pool |more $TMP/vol.out
99 fi
|