From 110faaa2834dcd791858a029f0729d0134b95b5b Mon Sep 17 00:00:00 2001 From: JLKwong Date: Wed, 10 Mar 2021 19:05:05 -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 20185c0cf..33ab2a2c3 100644 --- a/modules/clone.sh +++ b/modules/clone.sh @@ -9,7 +9,7 @@ function clone { case $argument in "detect") - if [ "$path" == "" ]; then + if [[ -n "$path" ]]; then echo "Error: Could not detect any devices. Try plugging your device into a different slot." else