From f8d40313e6ecf905b507496830ec0603952a9b23 Mon Sep 17 00:00:00 2001 From: Sterling Hanenkamp Date: Thu, 27 Jun 2024 00:40:55 -0500 Subject: [PATCH] chore: fixing the install script --- Changes.md | 4 ++++ cmd/version.txt | 2 +- tools/install.sh | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Changes.md b/Changes.md index 9818f1f..f9bd2f7 100644 --- a/Changes.md +++ b/Changes.md @@ -1,3 +1,7 @@ +## v0.0.2 2024-06-27 + + * Fixing the install script. + ## v0.0.1 2024-06-27 * Adding binaries to the release. diff --git a/cmd/version.txt b/cmd/version.txt index 8acdd82..4e379d2 100644 --- a/cmd/version.txt +++ b/cmd/version.txt @@ -1 +1 @@ -0.0.1 +0.0.2 diff --git a/tools/install.sh b/tools/install.sh index 43c3d93..ee85897 100644 --- a/tools/install.sh +++ b/tools/install.sh @@ -1,9 +1,9 @@ #!/bin/sh INSTALL_DIR=/usr/local/bin -CURRENT_VERSION=$(curl -s https://api.github.com/repos/zostay/genifest/releases/latest | grep tag_name | cut -d '"' -f 4) +CURRENT_VERSION=$(curl -s https://api.github.com/repos/zostay/genifest/releases/latest | grep tag_name | cut -d '"' -f 4 | cut -c 2-) OS_NAME=$(uname -s | tr '[:upper:]' '[:lower:]') OS_ARCH=$(uname -m) DOWNLOAD_URL="https://github.com/zostay/genifest/releases/download/$CURRENT_VERSION/genifest-$CURRENT_VERSION-$OS_NAME-$OS_ARCH" -curl -L "$DOWNLOAD_URL" -o "$INSTALL_DIR/genifest" +sudo sh -c 'curl -L "$DOWNLOAD_URL" -o "$INSTALL_DIR/genifest" && chmod +x "$INSTALL_DIR/genifest"'