From c03c98edb059f27619bcdcaccc390cf7e7dc8463 Mon Sep 17 00:00:00 2001 From: JLKwong Date: Wed, 10 Mar 2021 19:05:56 -0800 Subject: [PATCH] if then (fixes #2067) --- modules/clone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/clone.sh b/modules/clone.sh index 33ab2a2c3..f36f40105 100644 --- a/modules/clone.sh +++ b/modules/clone.sh @@ -9,7 +9,7 @@ function clone { case $argument in "detect") - if [[ -n "$path" ]]; then + if [[ -z "$path" ]]; then echo "Error: Could not detect any devices. Try plugging your device into a different slot." else