Skip to content

Commit 98ca0a3

Browse files
author
Kirill
committed
Fixed troubles with path
1 parent e1163c4 commit 98ca0a3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

updater.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from src.Utilities.git_utilities import check_git_on_device
1515
from src.Utilities.installer import make_action
1616

17-
UPDATER_VER = "0.0.1"
17+
UPDATER_VER = "0.1"
1818
OS_TYPE = check_os()
1919

2020

@@ -55,22 +55,25 @@
5555
print("work folder and updater dir here, check vim src folder")
5656
if path.exists(USER_FOLDER + UPDATER_DIR):
5757
print("vim folder here")
58-
print(check_current_vim_version_in_system())
5958
print("cd vim & output vim version in system & start pull")
6059
print("pulling")
6160
isUpdated = git_action("pull", USER_FOLDER + UPDATER_DIR)
6261
if isUpdated:
6362
print("vim already up to date")
63+
print(check_current_vim_version_in_system())
64+
print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR))
6465
sys_exit(0)
6566
print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR))
6667
make_action("make", USER_FOLDER + UPDATER_DIR)
6768
make_action("install", USER_FOLDER + UPDATER_DIR)
69+
print("vim updated to {}".format(check_current_vim_version_in_system()))
6870

6971
else:
7072
git_action("clone", VIM_REPO, USER_FOLDER + UPDATER_DIR)
71-
print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR + VIM_FOLDER))
73+
print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR))
7274
make_action("make", USER_FOLDER + UPDATER_DIR)
7375
make_action("install", USER_FOLDER + UPDATER_DIR)
76+
print("vim updated to {}".format(check_current_vim_version_in_system()))
7477

7578
elif path.isdir(USER_FOLDER) and not path.exists(USER_FOLDER + UPDATER_DIR):
7679
print("can't find work folder")
@@ -86,9 +89,10 @@
8689

8790
print("start git clone")
8891
git_action("clone", VIM_REPO, USER_FOLDER + UPDATER_DIR)
89-
print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR + VIM_FOLDER))
92+
print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR))
9093
make_action("make", USER_FOLDER + UPDATER_DIR)
9194
make_action("install", USER_FOLDER + UPDATER_DIR)
95+
print("vim updated to {}".format(check_current_vim_version_in_system()))
9296

9397
else:
9498
print("error with user folder: {user_folder}".format(user_folder=USER_FOLDER))

0 commit comments

Comments
 (0)