Skip to content
Snippets Groups Projects
Commit 4d111e5a authored by Eric Müller's avatar Eric Müller :mountain_bicyclist:
Browse files

Fix unset variable (SPACK_GERRIT_REFSPEC ) bug

Change-Id: I7c3c92971d3d16588fd9499a72c155af0b0826fb
parent 03b926ce
No related branches found
No related tags found
No related merge requests found
...@@ -97,7 +97,7 @@ if [ -n "${SPACK_GERRIT_CHANGE:-}" ] && [ -z "${SPACK_GERRIT_REFSPEC:-}" ]; then ...@@ -97,7 +97,7 @@ if [ -n "${SPACK_GERRIT_CHANGE:-}" ] && [ -z "${SPACK_GERRIT_REFSPEC:-}" ]; then
else else
if [ "${change_status}" = "MERGED" ]; then if [ "${change_status}" = "MERGED" ]; then
echo "This change depends on an already merged spack changeset! Ignoring.." >&2 echo "This change depends on an already merged spack changeset! Ignoring.." >&2
unset SPACK_GERRIT_REFSPEC SPACK_GERRIT_REFSPEC=""
fi fi
fi fi
...@@ -134,7 +134,7 @@ if [ -n "${SPACK_GERRIT_CHANGE:-}" ] && [ -z "${SPACK_GERRIT_REFSPEC:-}" ]; then ...@@ -134,7 +134,7 @@ if [ -n "${SPACK_GERRIT_CHANGE:-}" ] && [ -z "${SPACK_GERRIT_REFSPEC:-}" ]; then
fi fi
# prevent SPACK_GERRIT_REFSPEC from getting checked out again below # prevent SPACK_GERRIT_REFSPEC from getting checked out again below
unset SPACK_GERRIT_REFSPEC SPACK_GERRIT_REFSPEC=""
fi fi
fi fi
done done
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment