1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 23:47:07 -05:00

fix typos

This commit is contained in:
mubiale 2018-03-19 17:01:15 +08:00
parent 7b28be596d
commit 8ffedde5a9
3 changed files with 4 additions and 4 deletions

0
release/config/systemv/v2ray Normal file → Executable file
View File

View File

@ -149,7 +149,7 @@ extract(){
mkdir -p /tmp/v2ray mkdir -p /tmp/v2ray
unzip $1 -d "/tmp/v2ray/" unzip $1 -d "/tmp/v2ray/"
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
colorEcho ${RED} "Extracting V2Ray faile!" colorEcho ${RED} "Extracting V2Ray failed!"
exit exit
fi fi
return 0 return 0
@ -371,11 +371,11 @@ main(){
NEW_VER=`ls /tmp/v2ray |grep v2ray-v |cut -d "-" -f2` NEW_VER=`ls /tmp/v2ray |grep v2ray-v |cut -d "-" -f2`
fi fi
else else
# dowload via network and extract # download via network and extract
installSoftware "curl" installSoftware "curl"
getVersion getVersion
if [[ $? == 0 ]] && [[ "$FORCE" != "1" ]]; then if [[ $? == 0 ]] && [[ "$FORCE" != "1" ]]; then
colorEcho ${GREEN} "Lastest version ${NEW_VER} is already installed." colorEcho ${GREEN} "Latest version ${NEW_VER} is already installed."
exit exit
else else
colorEcho ${BLUE} "Installing V2Ray ${NEW_VER} on ${ARCH}" colorEcho ${BLUE} "Installing V2Ray ${NEW_VER} on ${ARCH}"

View File

@ -27,7 +27,7 @@ pushd $GOPATH/src/v2ray.com/core
echo "Adding a new tag: " "v$VER" echo "Adding a new tag: " "v$VER"
git tag -s -a "v$VER" -m "Version ${VER}" git tag -s -a "v$VER" -m "Version ${VER}"
sed -i '' "s/\(version *= *\"\).*\(\"\)/\1$VERN\2/g" core.go 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" git commit core.go -S -m "Update version"
echo "Pushing changes" echo "Pushing changes"
git push --follow-tags git push --follow-tags