Skip to content

Commit

Permalink
style: Canonical code format
Browse files Browse the repository at this point in the history
1. Regulate two judgments, this will not cause functional changes.
2. Add some supplementary content, mainly for subsequent maintenance.
  • Loading branch information
dctxmei committed Jun 13, 2020
1 parent cbec4d9 commit 38da8a7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,28 @@ installed: /etc/systemd/system/[email protected]
### 安裝 cURL

```
# apt update
# apt install curl
```

or

```
# yum makecache
# yum install curl
```

or

```
# dnf makecache
# dnf install curl
```

or

```
# zypper refresh
# zypper install curl
```

Expand Down Expand Up @@ -94,3 +98,9 @@ usage: install-release.sh [--remove | --version number | -c | -f | -h | -l | -p]
-l, --local Install V2Ray from a local file
-p, --proxy Download through a proxy server, e.g., -p http://127.0.0.1:8118 or -p socks5://127.0.0.1:1080
```

## 維護

請於 [develop](https://github.com/v2fly/fhs-install-v2ray/tree/develop) 分支進行,以避免對主分支造成破壞。

待確定無誤後,兩分支將進行合併。
2 changes: 1 addition & 1 deletion install-dat-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ DOWNLOAD_LINK_GEOSITE="https://github.com/v2ray/domain-list-community/releases/l

check_if_running_as_root() {
# If you want to run as another user, please modify $UID to be owned by this user
if [ $UID != "0" ]; then
if [[ "$UID" -ne '0' ]]; then
echo "error: You must run this script as root!"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

check_if_running_as_root() {
# If you want to run as another user, please modify $UID to be owned by this user
if [ $UID != "0" ]; then
if [[ "$UID" -ne '0' ]]; then
echo "error: You must run this script as root!"
exit 1
fi
Expand Down

0 comments on commit 38da8a7

Please sign in to comment.