Skip to content

Commit

Permalink
add detect sub-subcommand (fixes #2067)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLKwong committed Mar 11, 2021
1 parent 04e9e16 commit d06ab11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ function clone {
device="$1"

case $options in
"detect")
fdisk -l | grep -o '^/dev/sd[a-z]' | sort -u

*)
if [ -z "$device" ]; then
device="/dev/sdb"
Expand Down

0 comments on commit d06ab11

Please sign in to comment.