Skip to content

Commit

Permalink
if then (fixes #2067)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLKwong committed Mar 11, 2021
1 parent 6820b98 commit 1e80c5e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ function clone {

"detect")
if [ -n echo "The following devices are connected to your Pi:" ]; then
fdisk -l | grep -o '^/dev/sd[a-z]' | sort -u
fdisk -l | grep -o '^/dev/sd[a-z]' | sort -u

else; echo "Error: Could not detect any devices. Try plugging your device into a different slot."
else
echo "Error: Could not detect any devices. Try plugging your device into a different slot."
fi
;;

*)
Expand Down

0 comments on commit 1e80c5e

Please sign in to comment.