Skip to content

Commit

Permalink
bugfix: reverted some changes for format_partition
Browse files Browse the repository at this point in the history
  • Loading branch information
Helmuth Saatkamp committed Jun 25, 2020
1 parent 27d2db7 commit 71d2131
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fifo
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ format_partitions() {
if [[ $OPTION == y ]]; then
[[ -z $3 ]] && select_filesystem || filesystem=$3
mkfs."${filesystem}" "$1" \
"$([[ ${filesystem} == xfs || ${filesystem} == btrfs || ${filesystem} == reiserfs ]] && echo "-f")" \
"$([[ ${filesystem} == vfat ]] && echo "-F32")" \
"$([[ $TRIM -eq 1 && ${filesystem} == ext4 ]] && echo "-E discard")"
$([[ ${filesystem} == xfs || ${filesystem} == btrfs || ${filesystem} == reiserfs ]] && echo "-f") \
$([[ ${filesystem} == vfat ]] && echo "-F32") \
$([[ $TRIM -eq 1 && ${filesystem} == ext4 ]] && echo "-E discard")
fsck "$1"
mkdir -p "$2"
mount -t "${filesystem}" "$1" "$2"
Expand Down

0 comments on commit 71d2131

Please sign in to comment.