scripts/tests/rollingupgrade: fix installation for current commit

This commit is contained in:
littleskunk 2020-03-06 23:19:55 +01:00 committed by GitHub
parent e4da7bd9cd
commit 842c8d8ed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,15 +191,10 @@ for version in ${unique_versions}; do
bin_dir=${dir}/bin
echo -e "\nAdding worktree for ${version} in ${dir}."
if [[ $version = "master" ]]
then
git worktree add -f "$dir" "origin/master"
else
git worktree add -f "$dir" "${version}"
fi
git worktree add -f "$dir" "${version}"
rm -f ${dir}/private/version/release.go
rm -f ${dir}/internal/version/release.go
if [[ $version = $previous_release_version || $version = "master" ]]
if [[ $version = $previous_release_version || $version = $current_commit ]]
then
echo "Installing storj-sim for ${version} in ${dir}."
pushd ${dir}