Merge pull request #1721 from devimc/topic/data/kataCollectSupportSnap

data/kata-collect-data: support kata containers snap
This commit is contained in:
James O. D. Hunt
2019-05-24 15:38:42 +01:00
committed by GitHub

View File

@@ -7,7 +7,10 @@
typeset -r script_name=${0##*/}
typeset -r runtime_name="@RUNTIME_NAME@"
typeset -r runtime=$(command -v "$runtime_name" 2>/dev/null)
typeset -r runtime_path=$(command -v "$runtime_name" 2>/dev/null)
typeset -r runtime_snap_name="kata-containers.runtime"
typeset -r runtime_snap_path=$(command -v "$runtime_snap_name" 2>/dev/null)
typeset -r runtime=${runtime_path:-"$runtime_snap_path"}
typeset -r issue_url="@PROJECT_BUG_URL@"
typeset -r script_version="@VERSION@ (commit @COMMIT@)"