Skip to content

Commit ba9a5ba

Browse files
committed
uselessly change some words.
1 parent c0bbf73 commit ba9a5ba

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ install with this one-liner:
66
curl -sSL https://raw.githubusercontent.com/fiatjaf/nak/master/install.sh | sh
77
```
88

9-
- or install with `go install github.com/fiatjaf/nak@latest` if you have [Go](https://pkg.go.dev) set up.
9+
- or install with `go install github.com/fiatjaf/nak@latest` if you have **Go** set up.
1010
- or [download a binary](https://github.com/fiatjaf/nak/releases) manually.
1111
- or get the source with `git clone https://github.com/fiatjaf/nak` then
1212
- install with `go install`;
1313
- or run with docker using `docker build -t nak . && docker run nak event`.
1414
- or install with `brew install nak` if you use **macOS Homebrew**.
1515
- or install with `paru -S nak-bin` or `yay -S nak-bin` if you are on **Arch Linux**.
16-
- or install with `nix-env --install ripgrep` if you use **Nix**.
16+
- or install with `nix-env --install nak` if you use **Nix**.
1717

1818
## what can you do with it?
1919

install.sh

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,73 @@
11
#!/usr/bin/env sh
22
set -e
33

4-
# Detect OS
4+
# detect OS
55
detect_os() {
66
case "$(uname -s)" in
77
Linux*) echo "linux";;
88
Darwin*) echo "darwin";;
99
FreeBSD*) echo "freebsd";;
1010
MINGW*|MSYS*|CYGWIN*) echo "windows";;
1111
*)
12-
echo "Error: Unsupported OS $(uname -s)" >&2
12+
echo "error: unsupported OS $(uname -s)" >&2
1313
exit 1
1414
;;
1515
esac
1616
}
1717

18-
# Detect architecture
18+
# detect architecture
1919
detect_arch() {
2020
case "$(uname -m)" in
2121
x86_64|amd64) echo "amd64";;
2222
aarch64|arm64) echo "arm64";;
2323
riscv64) echo "riscv64";;
2424
*)
25-
echo "Error: Unsupported architecture $(uname -m)" >&2
25+
echo "error: unsupported architecture $(uname -m)" >&2
2626
exit 1
2727
;;
2828
esac
2929
}
3030

31-
# Set install directory
31+
# set install directory
3232
INSTALL_DIR="${INSTALL_DIR:-$HOME/.local/bin}"
3333

34-
# Detect platform
34+
# detect platform
3535
OS=$(detect_os)
3636
ARCH=$(detect_arch)
3737

38-
echo "Installing nak ($OS-$ARCH) to $INSTALL_DIR..."
38+
echo "installing nak ($OS-$ARCH) to $INSTALL_DIR..."
3939

40-
# Check if curl is available
41-
command -v curl >/dev/null 2>&1 || { echo "Error: curl is required" >&2; exit 1; }
40+
# check if curl is available
41+
command -v curl >/dev/null 2>&1 || { echo "error: curl is required" >&2; exit 1; }
4242

43-
# Get latest release tag
43+
# get latest release tag
4444
RELEASE_INFO=$(curl -s https://api.github.com/repos/fiatjaf/nak/releases/latest)
4545
TAG="${RELEASE_INFO#*\"tag_name\"}"
4646
TAG="${TAG#*\"}"
4747
TAG="${TAG%%\"*}"
4848

49-
[ -z "$TAG" ] && { echo "Error: Failed to fetch release info" >&2; exit 1; }
49+
[ -z "$TAG" ] && { echo "error: failed to fetch release info" >&2; exit 1; }
5050

51-
# Construct download URL
51+
# construct download URL
5252
BINARY_NAME="nak-${TAG}-${OS}-${ARCH}"
5353
[ "$OS" = "windows" ] && BINARY_NAME="${BINARY_NAME}.exe"
5454
DOWNLOAD_URL="https://github.com/fiatjaf/nak/releases/download/${TAG}/${BINARY_NAME}"
5555

56-
# Create install directory and download
56+
# create install directory and download
5757
mkdir -p "$INSTALL_DIR"
5858
TARGET_PATH="$INSTALL_DIR/nak"
5959
[ "$OS" = "windows" ] && TARGET_PATH="${TARGET_PATH}.exe"
6060

6161
if curl -sS -L -f -o "$TARGET_PATH" "$DOWNLOAD_URL"; then
6262
chmod +x "$TARGET_PATH"
63-
echo "Installed nak $TAG to $TARGET_PATH"
64-
65-
# Check if install dir is in PATH
63+
echo "installed nak $TAG to $TARGET_PATH"
64+
65+
# check if install dir is in PATH
6666
case ":$PATH:" in
6767
*":$INSTALL_DIR:"*) ;;
68-
*) echo "Note: Add $INSTALL_DIR to your PATH" ;;
68+
*) echo "note: add $INSTALL_DIR to your PATH" ;;
6969
esac
7070
else
71-
echo "Error: Download failed from $DOWNLOAD_URL" >&2
71+
echo "error: download failed from $DOWNLOAD_URL" >&2
7272
exit 1
7373
fi

0 commit comments

Comments
 (0)