Skip to content

Commit a0bf92f

Browse files
committed
Fix get_latest_release return value
Signed-off-by: fpv.dev <[email protected]>
1 parent 2c7fece commit a0bf92f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wallet-generator.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ install_bun() {
2929
}
3030

3131
get_latest_release() {
32-
echo "Fetching latest release information..."
3332
curl -s "https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/tags" | \
3433
grep '"name":' | \
3534
head -1 | \
@@ -44,12 +43,14 @@ download_and_extract() {
4443
mkdir -p "$TEMP_DIR"
4544

4645
local tarball_url="https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/tarball/refs/tags/${tag}"
46+
echo "Downloading from $tarball_url"
4747
curl -L -o "$TEMP_DIR/release.tar.gz" "$tarball_url"
4848

4949
cd "$TEMP_DIR"
5050
tar -xzf release.tar.gz --strip-components=1
5151
}
5252

53+
echo "Fetching latest release information..."
5354
LATEST_TAG=$(get_latest_release)
5455
if [ -z "$LATEST_TAG" ]; then
5556
echo "❌ Error: Could not fetch latest release information."

0 commit comments

Comments
 (0)