Shellcheck:
Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.

Signed-off-by: Randolph Sapp <[email protected]>
---
 oe-layertool-setup.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/oe-layertool-setup.sh b/oe-layertool-setup.sh
index 1fca272..ef25ca0 100755
--- a/oe-layertool-setup.sh
+++ b/oe-layertool-setup.sh
@@ -126,7 +126,7 @@ exit 1
 
 check_input() {
     # Check that at least -i or -f was used
-    if [ "$interactive" = "n" -a "x$inputfile" = "x" ]
+    if [ "$interactive" = "n" ] && [ "x$inputfile" = "x" ]
     then
         echo "ERROR: You must either use this script with the -i or -f options"
         usage
@@ -1000,7 +1000,7 @@ fi
 if [ "x$interactive" = "xy" ]
 then
     cont="y"
-    while [ "x$cont" = "xy" -o "x$cont" = "xY" ]
+    while [ "x$cont" = "xy" ] || [ "x$cont" = "xY" ]
     do
         # clean up the variables for each repo
         name=""
-- 
2.41.0



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14606): 
https://lists.yoctoproject.org/g/meta-arago/message/14606
Mute This Topic: https://lists.yoctoproject.org/mt/99521249/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to