blob: 5a1d3891da69e5ec73d2c66f6e42cef486501a80 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
set -eu
URL="https://cht.sh/:cht.sh"
DEST="$HOME/.local/bin/cht.sh"
TMP="$(mktemp)"
curl -fsSL "$URL" -o "$TMP"
chmod +x "$TMP"
# replace atomically
mv "$TMP" "$DEST"
|