fix: Extra files

After executing install, two redundant .new files will be left out, which should be removed.
pull/9/head
Dct Mei 2020-04-29 15:05:10 +08:00
parent c5deaa3d12
commit 95020aa14d
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ download_geosite() {
rename_new() {
for DAT in 'geoip' 'geosite'; do
install -m 755 "${V2RAY}$DAT.dat.new" "${V2RAY}$DAT.dat"
rm "${V2RAY}$DAT.dat.new"
rm "${V2RAY}$DAT.dat.sha256sum.new"
done
}