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:
James O. D. Hunt 2018-04-20 16:43:01 +01:00
parent dec01c1ec0
commit fbd28085d3

View File

@ -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"