Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OZ-450: Fix the 'install-latest.sh' script #59

Merged
merged 2 commits into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion scripts/install-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,15 @@ $mvn dependency:copy \
-DoutputDirectory=./ \
-DuseBaseVersion=true

mv ozone-1.0.0-*.zip ozone-${ozoneVersion}.zip
# Account for some inconsistencies in some systems where Maven copies the files without a timestamp.
# Only rename the file if it is time-stamped.
if [ ! -f "ozone-${ozoneVersion}.zip" ]
then
echo "$INFO Rename to 'ozone-${ozoneVersion}.zip'..."
mv ozone-1.0.0-*.zip ozone-${ozoneVersion}.zip
fi

echo "$INFO Unzipping..."
unzip ozone-${ozoneVersion}.zip -d ${ozoneInstallFolder}
rm ozone-${ozoneVersion}.zip
pushd ozone/run/docker/scripts/
Expand Down
Loading