Skip to content

Commit

Permalink
bug fix to uninstall_cutest
Browse files Browse the repository at this point in the history
  • Loading branch information
nimgould committed Sep 12, 2018
1 parent 20f7b76 commit 8c58a84
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions bin/uninstall_cutest
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,8 @@ while [[ $finished != 'true' ]]; do
echo " Are you sure you wish to uninstall the version for"
yesno_default_yes " $VERNAME"

#YESNO=""
if [[ $? == 1 ]]; then

#while [[ $YESNO != 'Y' && $YESNO != 'N' ]]; do
#read YESNO
#[[ $YESNO == "" ]] && YESNO="Y"
#YESNO=`echo $YESNO | tr a-z A-Z`
#done

#if [[ $YESNO == 'Y' ]]; then
if [[ $? != 0 ]]; then
echo " Removing object files and libraries ... "
\rm -f -r $CUTEST/objects/$VERSION
echo " Removing module information files ... "
Expand All @@ -105,16 +97,5 @@ while [[ $finished != 'true' ]]; do
fi

yesno_default_no " Do you wish to uninstall another version"

#YESNO=""

#while [[ $YESNO != 'Y' && $YESNO != 'N' ]]; do
#read YESNO
#[[ $YESNO == "" ]] && YESNO="N"
#YESNO=`echo $YESNO | tr a-z A-Z`
#done

#[[ $YESNO == 'N' ]] && finished='true'
[[ $? != 0 ]] && finished='true'
done

0 comments on commit 8c58a84

Please sign in to comment.