File tree 2 files changed +3
-2
lines changed
src/chroot_local-includes 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ MSG_FORMAT_NOSTO="`gettext \
35
35
If this is the first time you are running BitSafe from this device
36
36
there's nothing you should be worried about, and you can safely continue.\"`"
37
37
38
- MSG_FORMAT_CONT="`gettext \"You wish to continue? (y /n)\"`"
38
+ MSG_FORMAT_CONT="`gettext \"You wish to continue? (Y /n)\"`"
39
39
MSG_FORMAT_CHKSPC="`gettext \"* Checking available space\"`"
40
40
MSG_FORMAT_KEYSMALL="`gettext \
41
41
\"The device you are running bitsafe from is too small.
Original file line number Diff line number Diff line change @@ -68,14 +68,15 @@ CRYPT_DEVICE=/dev/"$DRIVE"2
68
68
if [ -e $CRYPT_DEVICE ]; then
69
69
warning " $MSG_FORMAT_THERESTO "
70
70
read sec
71
- if [[ " $sec " != " YES" ]]; then exit 1; fi
71
+ if [ -z " $sec " ] || [ [ " $sec " != " YES" ]]; then exit 1; fi
72
72
prstatus " $( printf " $MSG_FORMAT_DELPAR " " $CRYPT_DEVICE " ) "
73
73
parted /dev/$DRIVE rm 2 || critical_error " $MSG_FORMAT_ERRDEL "
74
74
NEW_DRIVE=false
75
75
else
76
76
notify " $MSG_FORMAT_NOSTO "
77
77
while [ 1 ]; do
78
78
read -p " $MSG_FORMAT_CONT " ans
79
+ ans=${ans:- y}
79
80
if [ $ans = " n" ]; then exit ; fi
80
81
if [ $ans = " y" ]; then break ; fi
81
82
done
You can’t perform that action at this time.
0 commit comments