build: fix commit variable usage

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-06-28 12:05:35 +02:00
parent bfa508d215
commit 439c8751e6
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ function headIsDetached() {
}
function binaryExists() {
ls build/portal_bridge_{COMMIT} 2>&1 1>/dev/null
ls build/portal_bridge_${COMMIT} 2>&1 1>/dev/null
}
function fetchChanges() {
@ -26,10 +26,10 @@ function buildBinaries() {
NIMFLAGS="{{ portal_bridge_update_nim_flags | join(' ') }}"
# Rename binaries to match commit they were built from.
mv "build/portal_bridge" "build/portal_bridge_{COMMIT}"
mv "build/portal_bridge" "build/portal_bridge_${COMMIT}"
# Create a symbolic link to the latest version
ln -frs build/portal_bridge_{COMMIT} build/portal_bridge
ln -frs build/portal_bridge_${COMMIT} build/portal_bridge
# Delete copies that are older than N days
find build -mtime +{{ portal_bridge_update_days_kept }} -exec rm '{}' \+