aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorishaan <contact@ishaan.cc>2026-07-29 15:51:19 +0530
committerishaan <contact@ishaan.cc>2026-07-29 15:51:19 +0530
commitcc4b5b69f1befe84551c0dbcb3df61eeea165cf7 (patch)
tree3c8888f5048c8aeea787341abe0a6c0e9134408e /install.sh
parenteaca307c38cc6511078323467ef8b9734886d288 (diff)
fix archive string in install
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 79de578..458a2c0 100755
--- a/install.sh
+++ b/install.sh
@@ -52,7 +52,7 @@ if [ -n "$TAG" ]; then
TMPDIR=$(mktemp -d)
trap 'rm -rf "$TMPDIR"' EXIT
- if curl -fsSL -o "$TMPDIR/eno.tar.gz" "$ARCHIVE_URL" && \
+ if curl -fsSL -o "$TMPDIR/$ARCHIVE_NAME" "$ARCHIVE_URL" && \
curl -fsSL -o "$TMPDIR/checksums.txt" "$CHECKSUM_URL"; then
CHK_TOOL=$(checksum_tool)
@@ -67,7 +67,7 @@ if [ -n "$TAG" ]; then
mkdir -p "$INSTALL_DIR"
cd "$TMPDIR"
- tar xzf eno.tar.gz
+ tar xzf "$ARCHIVE_NAME"
BINARY=$(find . -name eno -type f | head -1)
[ -z "$BINARY" ] && { echo "error: binary not found in archive" >&2; exit 1; }
install -m 755 "$BINARY" "$INSTALL_DIR/eno"