Skip to content

Commit c753e99

Browse files
authored
feat: n0des cli install script (#369)
1 parent 038f2df commit c753e99

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

public/n0des.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
# Copyright 2025 n0. All rights reserved. Dual MIT/Apache license.
3+
4+
set -e
5+
6+
# Set tag from first argument or default to "latest"
7+
if [ -n "$1" ]; then
8+
tag="${1:0:7}"
9+
else
10+
tag="latest"
11+
fi
12+
13+
target="linux-amd64"
14+
15+
release_url="https://vorc.s3.us-east-2.amazonaws.com/n0des-${target}-${tag}"
16+
17+
18+
echo "Downloading n0des for $target with tag $tag to ./n0des"
19+
curl "$release_url" -o ./n0des

0 commit comments

Comments
 (0)