mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-22 13:38:26 +00:00
snap: Fix unbound variable error
Don't assume `GITHUB_REF` is set. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
c9b291509d
commit
43de5440e5
@ -21,8 +21,8 @@ parts:
|
|||||||
version="9999"
|
version="9999"
|
||||||
kata_url="https://github.com/kata-containers/kata-containers"
|
kata_url="https://github.com/kata-containers/kata-containers"
|
||||||
|
|
||||||
if echo "${GITHUB_REF}" | grep -q -E "^refs/tags"; then
|
if echo "${GITHUB_REF:-}" | grep -q -E "^refs/tags"; then
|
||||||
version=$(echo ${GITHUB_REF} | cut -d/ -f3)
|
version=$(echo ${GITHUB_REF:-} | cut -d/ -f3)
|
||||||
git checkout ${version}
|
git checkout ${version}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user