This commit is contained in:
anki-code 2020-03-28 08:51:43 +03:00
parent 07ed3d914f
commit 28f5efa1f0

View file

@ -6,7 +6,7 @@ from urllib.parse import urlparse
from base64 import b64encode
from .shell import *
XXH_VERSION = '0.6.21'
XXH_VERSION = '0.6.22'
class xxh:
def __init__(self):
@ -226,7 +226,7 @@ class xxh:
host = self.url.hostname
host_info_s = """
xxh_home_realpath=$([ ! -x "$(command -v realpath)" ] && dirname {host_xxh_home}/p || realpath -m {host_xxh_home})
xxh_home_realpath=$([ ! -x "$(command -v realpath)" ] && readlink -f {host_xxh_home} || realpath -m {host_xxh_home})
xxh_version="dir_not_found"
if [[ -d $xxh_home_realpath ]]; then
xxh_version=$([ "$(ls -A $xxh_home_realpath)" ] && echo "version_not_found" || echo "dir_empty")