#!/usr/bin/env bash set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "$ROOT" case "${1:-}" in fix) npm install sharp @ffmpeg-installer/ffmpeg @ffprobe-installer/ffprobe ;; check) node -e "require('sharp'); require('@ffmpeg-installer/ffmpeg'); require('@ffprobe-installer/ffprobe')" ;; *) echo "Usage: bash scripts/make.sh fix|check" exit 1 ;; esac