17 lines
277 B
Bash
Executable File
17 lines
277 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
mkdir -p /opt/techs
|
|
|
|
VERSION=$1
|
|
|
|
cd /usr/src
|
|
|
|
|
|
wget https://github.com/oven-sh/bun/releases/download/bun-v$VERSION/bun-linux-x64.zip
|
|
unzip bun-linux-x64.zip
|
|
mkdir -p /opt/techs/bun-$VERSION
|
|
mv bun-linux-x64 /opt/techs/bun-$VERSION/bin
|
|
rm bun-linux-x64.zip
|