mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 22:43:09 +00:00
chore: use temp directory for tarball.
This commit is contained in:
parent
1070c884b8
commit
0242a6ad2f
@ -52,9 +52,10 @@ if curl --silent --fail-with-body -L \
|
||||
-o "${tarball}";
|
||||
then
|
||||
echo "Downloaded ${tarball}"
|
||||
tar -xzf "${tarball}"
|
||||
mv "release/librln.a" "${output_filename}"
|
||||
rm -rf "${tarball}" release
|
||||
tmpdir=$(mktemp -d)
|
||||
tar -xzf "${tarball}" -C "$tmpdir"
|
||||
mv "$tmpdir/release/librln.a" "${output_filename}"
|
||||
rm -rf "${tarball}" "$tmpdir"
|
||||
else
|
||||
echo "Failed to download ${tarball}"
|
||||
# Build rln instead
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user