Skip to content

Commit

Permalink
script fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav-Povolotsky committed Nov 13, 2024
1 parent 4eabf78 commit 0fc7cfb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/installation/06.krakatau-v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ REPOFULL="https://github.com/$REPO"
if [[ "$versions_collect_mode" == "0" ]]; then
# Installation mode
pushd /build
git clone -b $BRANCH --single-branch $REPOFULL
cd Krakatau
git clone -b $BRANCH --single-branch $REPOFULL .
last_commit="commit $(TZ=UTC0 git log -1 --pretty=format:"%h at %ad" --date='format-local:%Y-%m-%d') on $(git branch --show-current) branch"
commit_hash=$(git log -1 --pretty=format:"%h")
remote_path=$(git remote get-url origin)
github_url=$(echo "$remote_path" | sed -e 's/git@github.com:/https:\/\/github.com\//' -e 's/.git$//')
commit_url="${github_url}/commit/${commit_hash}"
rm -rf .git tests
popd
else
last_commit_data=$(curl -s "https://api.github.com/repos/$REPO/commits/$BRANCH")
Expand Down

0 comments on commit 0fc7cfb

Please sign in to comment.