File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5+ # Detect OS
6+ OS=$( uname -s | tr ' [:upper:]' ' [:lower:]' )
7+ case " $OS " in
8+ linux) OS=" linux" ;;
9+ darwin) OS=" darwin" ;;
10+ * ) echo " Unsupported OS: $OS " >&2 ; exit 1 ;;
11+ esac
12+
13+ # Detect architecture
14+ ARCH=$( uname -m)
15+ case " $ARCH " in
16+ x86_64) ARCH=" amd64" ;;
17+ aarch64|arm64) ARCH=" arm64" ;;
18+ * ) echo " Unsupported architecture: $ARCH " >&2 ; exit 1 ;;
19+ esac
20+
521TMPDIR=" $( mktemp -d) "
6- BIN=" $TMPDIR /gradient-engineer-go "
22+ BIN=" $TMPDIR /gradient-engineer"
723
8- curl -fsSL -o " $BIN " https://gradient.engineer/gradient-engineer-go
24+ curl -fsSL -o " $BIN " " https://gradient.engineer/binary/ gradient-engineer. ${OS} . ${ARCH} "
925chmod +x " $BIN "
10- " $BIN "
26+ " $BIN " 60-second-linux
1127
1228rm -f " $BIN "
1329rmdir " $TMPDIR "
You can’t perform that action at this time.
0 commit comments