-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfallbackandverify.sh
More file actions
42 lines (35 loc) · 829 Bytes
/
fallbackandverify.sh
File metadata and controls
42 lines (35 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
MYBOXES=${1}
usage="
Usage: ${0} [box-range]
Example: ${0} 1-4
Notes:
- Boxes are passed in a comma-delimited list, (ie 1,2,3), with ranges of contiguous boxes separated
by hyphens, (ie 1-4,10-15). One may mix single boxes and ranges of boxes in the following fashion, 300-302,307,420-421.
- The box number is designated with the variable \${b}: 'ssh targetdev\${b}'
---------------------------
"
while getopts "h" OPT
do
case $OPT in
h )
echo "$usage"
exit 1
;;
\?)
echo "$usage"
exit 1;;
esac
done
# remove the flags from $@
shift $((${OPTIND} - 1))
# If MYBOXES is not defined
if [ "$MYBOXES" == "" ] ; then
echo
echo "$usage"
exit 1
fi
cd deploymentscript/
./runme -qr ${MYBOXES} -f
./runme -qvr ${MYBOXES} t_old
./runme -qvr ${MYBOXES} t