@@ -63,7 +63,7 @@ def add_to_bash_startup(inp, profile_path):
63
63
if script in content :
64
64
logger .warning (f'{ inp } already added to { profile_path } , returned.' )
65
65
return
66
- logger .debug (f'added to { profile_path } ' )
66
+ logger .warning (f'{ inp } added, please restart your terminal or computer. ' )
67
67
with open (filepath , 'a' ) as f :
68
68
f = f .write (script )
69
69
@@ -82,7 +82,7 @@ def guess_repos():
82
82
elif SYS == 'Linux' :
83
83
if MACHINE .startswith ('armv' ) or MACHINE .startswith ('aarch' ) or MACHINE in ['arm' , 'arm64' ]:
84
84
repos += ['main_linux_arm' ]
85
- if test_cmd ('apt' ) == 0 :
85
+ if test_cmd ('apt --version ' ) == 0 :
86
86
repos += ['main_linux_arm_deb' ]
87
87
elif MACHINE in ['x86' , 'i386' , 'i686' , 'x86_64' , 'x64' , 'amd64' ]:
88
88
repos += ['main_linux' ]
@@ -104,9 +104,9 @@ def print_data():
104
104
print (f'SYS, MACHINE, ARCH: { SYS } , { MACHINE } , { ARCH } ' )
105
105
print (f'\n bin_dir in PATH: { bin_available } ' )
106
106
if not bin_available :
107
- print (' - try: mpkg doctor --fix-bin-dir ' )
108
- print (f"7z_command : { sevenzip_cmd } " )
109
- if sevenzip_cmd .startswith ('7z_not_found' ):
107
+ print (' - try: touch ~/.profile ~/.bashrc && mpkg doctor --fix-bin-env ' )
108
+ print (f"\n 7z_command : { sevenzip_cmd } " )
109
+ if sevenzip_cmd .lstrip ( '"' ). startswith ('7z_not_found' ):
110
110
print (
111
111
' - 7zip not found, try `mpkg doctor --fix-7z-path` if you have installed it' )
112
112
print (' - try `mpkg install 7zip` to install it' )
0 commit comments