mirror of
https://github.com/xxh/xxh
synced 2025-02-18 13:28:28 +00:00
0.6.11
This commit is contained in:
parent
7802894afa
commit
61536a77a2
2 changed files with 3 additions and 3 deletions
xxh_xxh
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
xxh_home_realpath=`realpath -m _xxh_home_`
|
||||
xxh_home_realpath=$([ ! -x "$(command -v realpath)" ] && dirname __xxh_home__/p || realpath -m __xxh_home__)
|
||||
|
||||
xxh_version='dir_not_found'
|
||||
if [[ -d $xxh_home_realpath ]]; then
|
||||
|
@ -13,7 +13,7 @@ fi
|
|||
|
||||
echo xxh_home_realpath=$xxh_home_realpath
|
||||
echo xxh_version=$xxh_version
|
||||
echo xxh_shell_exists=`[ -d $xxh_home_realpath/xxh/shells/_xxh_shell_ ] && echo "1" ||echo "0"`
|
||||
echo xxh_shell_exists=`[ -d $xxh_home_realpath/xxh/shells/__xxh_shell__ ] && echo "1" ||echo "0"`
|
||||
echo xxh_home_writable=`[ -w $xxh_home_realpath ] && echo "1" ||echo "0"`
|
||||
echo xxh_parent_home_writable=`[ -w $(dirname $xxh_home_realpath) ] && echo "1" ||echo "0"`
|
||||
echo rsync=`command -v rsync`
|
||||
|
|
|
@ -273,7 +273,7 @@ class xxh:
|
|||
host_info_sh = self.package_dir_path / 'host_info.sh'
|
||||
if self.use_pexpect:
|
||||
while 1:
|
||||
cmd = "bash -c 'cat {host_info_sh} | sed \"s|_xxh_home_|{host_xxh_home}|\" | sed \"s|__shell__|{short_shell_name}|\" | sed \"s|_xxh_shell_|{shell}|\" | {ssh} {ssh_v} {ssh_arguments} {host} -T \"bash -s\"'".format(
|
||||
cmd = "bash -c 'cat {host_info_sh} | sed \"s|__xxh_home__|{host_xxh_home}|g\" | sed \"s|__shell__|{short_shell_name}|g\" | sed \"s|__xxh_shell__|{shell}|g\" | {ssh} {ssh_v} {ssh_arguments} {host} -T \"bash -s\"'".format(
|
||||
host_info_sh=host_info_sh,
|
||||
host_xxh_home=self.host_xxh_home,
|
||||
shell=self.shell,
|
||||
|
|
Loading…
Add table
Reference in a new issue