@@ -22,39 +22,39 @@ function filesystems() {
22
22
" ext4" )
23
23
fsprogs=" e2fsprogs"
24
24
mkfs.ext4 " $diskvar " " $disknumber "
25
- if [[ " $disknumber " == " 1" ]]; then
25
+ if [[ " $disknumber " == " 1" ]]; then
26
26
mount " $diskvar " " $disknumber " " /mnt"
27
- elif [[ " $disknumber " == " 2" ]]; then
27
+ elif [[ " $disknumber " == " 2" ]]; then
28
28
mount " $diskvar " " $disknumber " " /mnt"
29
29
fi
30
30
break
31
31
;;
32
32
" XFS" )
33
33
fsprogs=" xfsprogs"
34
34
mkfs.xfs " $diskvar " " $disknumber "
35
- if [[ " $disknumber " == " 1" ]]; then
35
+ if [[ " $disknumber " == " 1" ]]; then
36
36
mount " $diskvar " " $disknumber " " /mnt"
37
- elif [[ " $disknumber " == " 2" ]]; then
37
+ elif [[ " $disknumber " == " 2" ]]; then
38
38
mount " $diskvar " " $disknumber " " /mnt"
39
39
fi
40
40
break
41
41
;;
42
42
" Btrfs" )
43
43
fsprogs=" btrfs-progs"
44
44
mkfs.btrfs " -f" " $diskvar " " $disknumber "
45
- if [[ " $disknumber " == " 1" ]]; then
45
+ if [[ " $disknumber " == " 1" ]]; then
46
46
mount " $diskvar " " $disknumber " " /mnt"
47
- elif [[ " $disknumber " == " 2" ]]; then
47
+ elif [[ " $disknumber " == " 2" ]]; then
48
48
mount " $diskvar " " $disknumber " " /mnt"
49
49
fi
50
50
break
51
51
;;
52
52
" F2FS" )
53
53
fsprogs=" f2fs-tools"
54
54
mkfs.f2fs " -f" " $diskvar " " $disknumber "
55
- if [[ " $disknumber " == " 1" ]]; then
55
+ if [[ " $disknumber " == " 1" ]]; then
56
56
mount " $diskvar " " $disknumber " " /mnt"
57
- elif [[ " $disknumber " == " 2" ]]; then
57
+ elif [[ " $disknumber " == " 2" ]]; then
58
58
mount " $diskvar " " $disknumber " " /mnt"
59
59
fi
60
60
break
0 commit comments