diff --git a/scripts/activate.sh b/scripts/activate.sh index 72bd44738..284d3a13e 100755 --- a/scripts/activate.sh +++ b/scripts/activate.sh @@ -6,7 +6,11 @@ if [[ "$0" == "${BASH_SOURCE[0]}" ]]; then exit 1 fi -export PYAV_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.."; pwd)" +if [[ -n "$ZSH_VERSION" ]]; then + export PYAV_ROOT="$(realpath -- "$(dirname -- "$(readlink -f -- "$0")")/..")" +else + export PYAV_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.."; pwd)" +fi if [[ ! "$PYAV_LIBRARY" ]]; then if [[ "$1" ]]; then diff --git a/scripts/build-deps b/scripts/build-deps index 9cc795305..4291140dd 100755 --- a/scripts/build-deps +++ b/scripts/build-deps @@ -47,7 +47,7 @@ cd "$PYAV_LIBRARY_ROOT" if [[ ! -d $PYAV_LIBRARY ]]; then url="https://ffmpeg.org/releases/$PYAV_LIBRARY.tar.gz" echo Downloading $url - wget --no-check-certificate "$url" || exit 1 + curl "$url" --output ${PYAV_LIBRARY}.tar.gz || exit 1 tar -xzf $PYAV_LIBRARY.tar.gz rm $PYAV_LIBRARY.tar.gz echo