File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,11 @@ if [ "${GS_HOME}x" = "x" ] ; then
36
36
fi
37
37
38
38
postFix=" "
39
- while getopts " hp:" OPT ; do
39
+ while getopts " : hp:" OPT ; do
40
40
case " $OPT " in
41
41
h) usage; exit 0;;
42
42
p) postFix=" ${OPTARG} " ;;
43
+ ? ) postFix=" " ;; # handle optional -p argument "
43
44
* ) usage; exit 1;;
44
45
esac
45
46
done
Original file line number Diff line number Diff line change 59
59
60
60
if [ ! -e $pharo /todeClient${postFix} .image ] ; then
61
61
echo " The requested todeClient image: $pharo /todeClient${postFix} .image does not exist"
62
- while true ; do
63
- read -p " Do you wish to create todeClient${postFix} ?" yn
62
+ created=" false"
63
+ while [ " $created " = " false" ] ; do
64
+ read -p " Do you wish to create todeClient${postFix} ? [y/n]" yn
64
65
case $yn in
65
- [Yy]* ) $GS_HOME /bin/createTodeImage -p ${postFix} ;;
66
+ [Yy]* ) $GS_HOME /bin/createTodeImage -p ${postFix} ; created= " true " ; ;
66
67
[Nn]* ) exit 1;;
67
68
* ) echo " Please answer yes or no." ;;
68
69
esac
You can’t perform that action at this time.
0 commit comments