Skip to content

Commit

Permalink
ext: Don't duplicate the same part label
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed Jun 14, 2024
1 parent 8486eb3 commit 04a739f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ext
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if ! (( UID )); then
exit 1
fi

parts=( /dev/disk/by-partlabel/ext{,-}* )
parts=( /dev/disk/by-partlabel/ext* )
num_parts=${#parts[@]}

if (( num_parts != 1 )); then
Expand Down

0 comments on commit 04a739f

Please sign in to comment.