From: Flole998 Date: Tue, 19 May 2020 00:01:32 +0000 (+0200) Subject: Fix doozer builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38fdee98f48c203362af0c87a4fed24b52bd4ffb;p=thirdparty%2Ftvheadend.git Fix doozer builds --- diff --git a/support/lib.sh b/support/lib.sh index 3cb14276d..fc6b4d4b2 100755 --- a/support/lib.sh +++ b/support/lib.sh @@ -99,7 +99,7 @@ function download N="${PCLOUD_BASEDIR}/staticlib/${CODENAME}/${ARCH}/${LIB_NAME}-${LIB_HASH}.tgz" echo "DOWNLOAD ${N} / ${PCLOUD_HASHDIR}" - if [[ "$(python -V)" =~ "Python 2" ]]; then + if hash python; then ${ROOTDIR}/support/pcloud.py publink_download "${PCLOUD_HASHDIR}" "${N}" "${P}.tmp" else python3 ${ROOTDIR}/support/pcloud.py publink_download "${PCLOUD_HASHDIR}" "${N}" "${P}.tmp" @@ -177,7 +177,7 @@ function upload # Upload N="${PCLOUD_BASEDIR}/staticlib/${CODENAME}/${ARCH}/${LIB_NAME}-${LIB_HASH}.tgz" echo "UPLOAD ${N}" - if [[ "$(python -V)" =~ "Python 2" ]]; then + if hash python; then ${ROOTDIR}/support/pcloud.py upload "${N}" "${P}.tmp" || return 1 else python3 ${ROOTDIR}/support/pcloud.py upload "${N}" "${P}.tmp" || return 1