Skip to content

Commit

Permalink
build scripts: Add git pull
Browse files Browse the repository at this point in the history
Add a git pull to make sure we got the latest version. If someone has
pushed tags and we have an older version of the repo locally we might
not see newer tags.
  • Loading branch information
mchack-work committed Nov 22, 2023
1 parent 7f428b9 commit 728ac24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build-podman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ printf "Building signer with version: %s\n" "$signer_version"

if [ -d ../tkey-libs ]
then
(cd ../tkey-libs; git checkout "$tkey_libs_version")
(cd ../tkey-libs; git checkout main; git pull; git checkout "$tkey_libs_version")
else
git clone -b "$tkey_libs_version" https://github.com/tillitis/tkey-libs.git ../tkey-libs
fi

if [ -d ../tkey-device-signer ]
then
(cd ../tkey-device-signer; git checkout "$signer_version")
(cd ../tkey-device-signer; git checkout main; git pull; git checkout "$signer_version")
else
git clone -b "$signer_version" https://github.com/tillitis/tkey-device-signer.git ../tkey-device-signer
fi
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ printf "Building signer with version: %s\n" "$signer_version"

if [ -d ../tkey-libs ]
then
(cd ../tkey-libs; git checkout "$tkey_libs_version")
(cd ../tkey-libs; git checkout main; git pull; git checkout "$tkey_libs_version")
else
git clone -b "$tkey_libs_version" https://github.com/tillitis/tkey-libs.git ../tkey-libs
fi

if [ -d ../tkey-device-signer ]
then
(cd ../tkey-device-signer; git checkout "$signer_version")
(cd ../tkey-device-signer; git checkout main; git pull; git checkout "$signer_version")
else
git clone -b "$signer_version" https://github.com/tillitis/tkey-device-signer.git ../tkey-device-signer
fi
Expand Down

0 comments on commit 728ac24

Please sign in to comment.