diff mbox series

[oe-layersetup,PATCHv2,11/16] oe-layertool-setup: guard against invalid expression in case

Message ID 20230614034507.598391-12-res.sapp@gmail.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series Sacrifice your first born to the linter | expand

Commit Message

Res Sapp June 14, 2023, 3:45 a.m. UTC
Guard against and invalid expression in the main option case statement.

Signed-off-by: Randolph Sapp <res.sapp@gmail.com>
---
 oe-layertool-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/oe-layertool-setup.sh b/oe-layertool-setup.sh
index 8e29f9a..e427393 100755
--- a/oe-layertool-setup.sh
+++ b/oe-layertool-setup.sh
@@ -962,7 +962,7 @@  do
         o ) outputfile="$OPTARG";;
         d ) dldir="$OPTARG";;
         b ) oebase="$OPTARG";;
-        h ) usage;;
+        * ) usage;;
     esac
 done