Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read FFMPEG_DOWNLOAD_URL env var #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ output() {
header "Installing ffmpeg"

BUILD_DIR=${1:-}
CACHE_DIR=${2:-}
ENV_DIR=${3:-}
VENDOR_DIR="vendor"
FFMPEG_ARCHIVE_NAME="ffmpeg.tar.xz"

Expand All @@ -29,6 +31,10 @@ cd $VENDOR_DIR
mkdir -p ffmpeg
cd ffmpeg

if [[ -d "$ENV_DIR" && -f "$ENV_DIR/FFMPEG_DOWNLOAD_URL" ]]; then
FFMPEG_DOWNLOAD_URL="$(cat "$ENV_DIR/FFMPEG_DOWNLOAD_URL")"
fi

if [[ -z $FFMPEG_DOWNLOAD_URL ]]; then
echo "Variable FFMPEG_DOWNLOAD_URL isn't set, using default value" | output
FFMPEG_DOWNLOAD_URL="https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz"
Expand Down