Skip to content

Commit

Permalink
scripts: Add debug option to collect script
Browse files Browse the repository at this point in the history
Add a `--debug` option to the data collection script that could be
useful in the case where the agent version cannot be established.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Mar 9, 2018
1 parent 875937a commit 17ad8f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions data/collect-data.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ main()
args=$(getopt \
-n "$script_name" \
-a \
--options="hv" \
--longoptions="help version" \
--options="dhv" \
--longoptions="debug help version" \
-- "$@")

eval set -- "$args"
Expand All @@ -535,6 +535,10 @@ main()
while [ $# -gt 1 ]
do
case "$1" in
-d|--debug)
set -x
;;

-h|--help)
usage && exit 0
;;
Expand Down

0 comments on commit 17ad8f6

Please sign in to comment.