File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ def get_host_info(self):
237237
238238 host = self .url .hostname
239239 host_info_s = """
240- xxh_home_realpath=$([ ! -x "$(command -v realpath)" ] && readlink -f {host_xxh_home} || realpath -m {host_xxh_home})
240+ xxh_home_realpath=$(dirname {host_xxh_home})/$(basename {host_xxh_home})
241241 xxh_version="dir_not_found"
242242 if [[ -d $xxh_home_realpath ]]; then
243243 xxh_version=$([ "$(ls -A $xxh_home_realpath)" ] && echo "version_not_found" || echo "dir_empty")
@@ -754,7 +754,7 @@ def packages_operations():
754754 shells_dir = (self .local_xxh_home / '.xxh/shells' )
755755 ))
756756
757- if p (self .host_xxh_home ) == p (f '/' ):
757+ if p (self .host_xxh_home ). resolve () == p ('/' ):
758758 self .eeprint ("Host xxh home path {host_xxh_home} looks like /. Please check twice!" )
759759
760760 host_info = self .get_host_info ()
You can’t perform that action at this time.
0 commit comments