mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
fix typos
This commit is contained in:
parent
7b28be596d
commit
8ffedde5a9
0
release/config/systemv/v2ray
Normal file → Executable file
0
release/config/systemv/v2ray
Normal file → Executable file
@ -149,7 +149,7 @@ extract(){
|
||||
mkdir -p /tmp/v2ray
|
||||
unzip $1 -d "/tmp/v2ray/"
|
||||
if [[ $? -ne 0 ]]; then
|
||||
colorEcho ${RED} "Extracting V2Ray faile!"
|
||||
colorEcho ${RED} "Extracting V2Ray failed!"
|
||||
exit
|
||||
fi
|
||||
return 0
|
||||
@ -371,11 +371,11 @@ main(){
|
||||
NEW_VER=`ls /tmp/v2ray |grep v2ray-v |cut -d "-" -f2`
|
||||
fi
|
||||
else
|
||||
# dowload via network and extract
|
||||
# download via network and extract
|
||||
installSoftware "curl"
|
||||
getVersion
|
||||
if [[ $? == 0 ]] && [[ "$FORCE" != "1" ]]; then
|
||||
colorEcho ${GREEN} "Lastest version ${NEW_VER} is already installed."
|
||||
colorEcho ${GREEN} "Latest version ${NEW_VER} is already installed."
|
||||
exit
|
||||
else
|
||||
colorEcho ${BLUE} "Installing V2Ray ${NEW_VER} on ${ARCH}"
|
||||
|
@ -27,7 +27,7 @@ pushd $GOPATH/src/v2ray.com/core
|
||||
echo "Adding a new tag: " "v$VER"
|
||||
git tag -s -a "v$VER" -m "Version ${VER}"
|
||||
sed -i '' "s/\(version *= *\"\).*\(\"\)/\1$VERN\2/g" core.go
|
||||
echo "Commiting core.go (may not necessary)"
|
||||
echo "Committing core.go (may not necessary)"
|
||||
git commit core.go -S -m "Update version"
|
||||
echo "Pushing changes"
|
||||
git push --follow-tags
|
||||
|
Loading…
Reference in New Issue
Block a user