Skip to content

Commit

Permalink
xpadneo, dkms: Add kernel source dir option for easier testing
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Krakow <[email protected]>
  • Loading branch information
kakra committed Dec 12, 2024
1 parent b472272 commit c88f29a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/options.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
#!/bin/bash

# shellcheck disable=SC2046
OPTIONS=$(getopt --name "$0" --longoptions "verbose" -- "" "$@") || exit 1
OPTIONS=$(getopt --name "$0" --longoptions "kernelsourcedir:,verbose" -- "" "$@") || exit 1
# shellcheck disable=SC2086
eval set -- $OPTIONS

while true; do
case "$1" in
--kernelsourcedir)
shift
# shellcheck disable=SC2034
KERNEL_SOURCE_DIR="--kernelsourcedir=$1"
;;
--verbose)
echo "* verbose mode enabled"
# shellcheck disable=SC2034
Expand All @@ -17,7 +22,7 @@ while true; do
break
;;
*)
echo "usage: $0 [--verbose]"
echo "usage: $0 [--kernelsourcedir] [--verbose]"
exit 1
esac
shift
Expand Down

0 comments on commit c88f29a

Please sign in to comment.