Skip to content

Commit 128ff06

Browse files
authored
shellcheck for #51
1 parent d9b501c commit 128ff06

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

archon.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,39 @@ function filesystems() {
2222
"ext4")
2323
fsprogs="e2fsprogs"
2424
mkfs.ext4 "$diskvar""$disknumber"
25-
if [[ "$disknumber"=="1" ]]; then
25+
if [[ "$disknumber" == "1" ]]; then
2626
mount "$diskvar""$disknumber" "/mnt"
27-
elif [[ "$disknumber"=="2" ]]; then
27+
elif [[ "$disknumber" == "2" ]]; then
2828
mount "$diskvar""$disknumber" "/mnt"
2929
fi
3030
break
3131
;;
3232
"XFS")
3333
fsprogs="xfsprogs"
3434
mkfs.xfs "$diskvar""$disknumber"
35-
if [[ "$disknumber"=="1" ]]; then
35+
if [[ "$disknumber" == "1" ]]; then
3636
mount "$diskvar""$disknumber" "/mnt"
37-
elif [[ "$disknumber"=="2" ]]; then
37+
elif [[ "$disknumber" == "2" ]]; then
3838
mount "$diskvar""$disknumber" "/mnt"
3939
fi
4040
break
4141
;;
4242
"Btrfs")
4343
fsprogs="btrfs-progs"
4444
mkfs.btrfs "-f" "$diskvar""$disknumber"
45-
if [[ "$disknumber"=="1" ]]; then
45+
if [[ "$disknumber" == "1" ]]; then
4646
mount "$diskvar""$disknumber" "/mnt"
47-
elif [[ "$disknumber"=="2" ]]; then
47+
elif [[ "$disknumber" == "2" ]]; then
4848
mount "$diskvar""$disknumber" "/mnt"
4949
fi
5050
break
5151
;;
5252
"F2FS")
5353
fsprogs="f2fs-tools"
5454
mkfs.f2fs "-f" "$diskvar""$disknumber"
55-
if [[ "$disknumber"=="1" ]]; then
55+
if [[ "$disknumber" == "1" ]]; then
5656
mount "$diskvar""$disknumber" "/mnt"
57-
elif [[ "$disknumber"=="2" ]]; then
57+
elif [[ "$disknumber" == "2" ]]; then
5858
mount "$diskvar""$disknumber" "/mnt"
5959
fi
6060
break

0 commit comments

Comments
 (0)