mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 15:32:30 +00:00
scripts: Make more collect script variables read only
Changed some important global variables to be read-only. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
dec01c1ec0
commit
fbd28085d3
@ -5,11 +5,11 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
script_name=${0##*/}
|
||||
runtime_name="@RUNTIME_NAME@"
|
||||
runtime=$(command -v "$runtime_name" 2>/dev/null)
|
||||
issue_url="@PROJECT_BUG_URL@"
|
||||
script_version="@VERSION@ (commit @COMMIT@)"
|
||||
typeset -r script_name=${0##*/}
|
||||
typeset -r runtime_name="@RUNTIME_NAME@"
|
||||
typeset -r runtime=$(command -v "$runtime_name" 2>/dev/null)
|
||||
typeset -r issue_url="@PROJECT_BUG_URL@"
|
||||
typeset -r script_version="@VERSION@ (commit @COMMIT@)"
|
||||
|
||||
typeset -r unknown="unknown"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user