coolaj86 / zig-uuidv7

UUIDv7, written in Zig
Other
0 stars 1 forks source link

doc: more pro install script #1

Open coolaj86 opened 10 hours ago

coolaj86 commented 10 hours ago

For anyone who wants it:

#!/bin/sh
set -e
set -u

if command -v uuidv7 > /dev/null; then
    echo >&2 "Found 'uuidv7' already in PATH"
    exit 0
fi

b_triplet='x86_64-linux-musl'
curl --fail-with-body -sS -L -O \
    https://github.com/coolaj86/zig-uuidv7/releases/download/v1.0.0/uuidv7-v1.0.0-"$b_triplet".tar.gz
tar xf ./uuidv7-v1.0.0-"$b_triplet".tar.gz

mkdir -p ~/bin/
mv uuidv7 ~/bin/
echo >&2 'Installed uuidv7 v1.0.0 to ~/bin/uuidv7'