overlay: Be explicit about the subcommand
This allows us to treat the remaining arguments as a list tail. However
for now assume we have just the one tail element.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Id6ef984e37c5d4b6dace6ca338db58716aee86e8
diff --git a/overlay/overlay b/overlay/overlay
index 802611d..e4dbc16 100755
--- a/overlay/overlay
+++ b/overlay/overlay
@@ -49,12 +49,15 @@
exit 1
fi
-case $1 in
+subcmd=$1
+shift
+
+case $subcmd in
add)
- overlay_add $2
+ overlay_add $1
;;
remove)
- overlay_remove $2
+ overlay_remove $1
;;
-h|--help|*)
cat $0