This commit is contained in:
anki-code 2020-02-12 13:29:22 +03:00
parent a1a92838c9
commit 3923020bb8
3 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ setuptools.setup(
install_requires=['xonsh'], install_requires=['xonsh'],
platforms='Unix-like', platforms='Unix-like',
scripts=['xxh'], scripts=['xxh'],
package_data={'xonssh_xxh':['*.xsh']}, package_data={'xonssh_xxh':['*.xsh', '*.sh']},
packages=setuptools.find_packages(), packages=setuptools.find_packages(),
classifiers=["Programming Language :: Python :: 3"], classifiers=["Programming Language :: Python :: 3"],
license="BSD", license="BSD",

2
xxh
View file

@ -147,7 +147,7 @@ if os.path.abspath(opt.host_xxh_home) == '/':
print("Host xxh home path {host_xxh_home} looks like /. Please check twice!") print("Host xxh home path {host_xxh_home} looks like /. Please check twice!")
exit(1) exit(1)
host_info = $(cat host_info.sh | sed @(f's|_xxh_home_|{opt.host_xxh_home}|') | ssh @(ssh_arguments) @(host) -T "bash -s" ).strip() host_info = $(cat @(f"{package_dir_path}/host_info.sh") | sed @(f's|_xxh_home_|{opt.host_xxh_home}|') | ssh @(ssh_arguments) @(host) -T "bash -s" ).strip()
if host_info == '': if host_info == '':
print(f'Unknown answer from host when checking user home path. Check your connection parameters using ordinary ssh') print(f'Unknown answer from host when checking user home path. Check your connection parameters using ordinary ssh')