8000 format confirmation when no storage partition is present defaults to Y · javascriptit/BitSafe@2fc5b82 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2fc5b82

Browse files
committed
format confirmation when no storage partition is present defaults to Y
1 parent 7bf9ad2 commit 2fc5b82

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/chroot_local-includes/lib/strings/bitsafe-format-storage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ MSG_FORMAT_NOSTO="`gettext \
3535
If this is the first time you are running BitSafe from this device
3636
there's nothing you should be worried about, and you can safely continue.\"`"
3737

38-
MSG_FORMAT_CONT="`gettext \"You wish to continue? (y/n)\"`"
38+
MSG_FORMAT_CONT="`gettext \"You wish to continue? (Y/n)\"`"
3939
MSG_FORMAT_CHKSPC="`gettext \"* Checking available space\"`"
4040
MSG_FORMAT_KEYSMALL="`gettext \
4141
\"The device you are running bitsafe from is too small.

src/chroot_local-includes/usr/sbin/bitsafe-format-storage

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ CRYPT_DEVICE=/dev/"$DRIVE"2
6868
if [ -e $CRYPT_DEVICE ]; then
6969
warning "$MSG_FORMAT_THERESTO"
7070
read sec
71-
if [[ "$sec" != "YES" ]]; then exit 1; fi
71+
if [ -z "$sec" ] || [[ "$sec" != "YES" ]]; then exit 1; fi
7272
prstatus "$( printf "$MSG_FORMAT_DELPAR" "$CRYPT_DEVICE" )"
7373
parted /dev/$DRIVE rm 2 || critical_error "$MSG_FORMAT_ERRDEL"
7474
NEW_DRIVE=false
7575
else
7676
notify "$MSG_FORMAT_NOSTO"
7777
while [ 1 ]; do
7878
read -p "$MSG_FORMAT_CONT" ans
79+
ans=${ans:-y}
7980
if [ $ans = "n" ]; then exit; fi
8081
if [ $ans = "y" ]; then break; fi
8182
done

0 commit comments

Comments
 (0)
0