From c2d37ae384f4450f0d338cad57db1e4985734492 Mon Sep 17 00:00:00 2001 From: cmichi Date: Fri, 30 Jun 2017 12:44:07 +0000 Subject: [PATCH 1/2] Mention all dependencies --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index d5a4fb0..424f696 100644 --- a/readme.md +++ b/readme.md @@ -16,7 +16,7 @@ tested on Windows/Cygwin, OSX, and should be fine on Linux ### Installation -The only dependency is Imagemagick. For videos FFmpeg is also required. +The dependencies are Imagemagick, zip and rsync. For videos FFmpeg is also required. Download the repo and alias the script From 63c58b49ccf6627138ce35ba00145a55d89536b8 Mon Sep 17 00:00:00 2001 From: cmichi Date: Fri, 30 Jun 2017 12:45:13 +0000 Subject: [PATCH 2/2] Abort if missing zip or rsync dependency --- expose.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/expose.sh b/expose.sh index 3aa8d3d..b772610 100755 --- a/expose.sh +++ b/expose.sh @@ -76,6 +76,12 @@ ffmpeg_threads=${ffmpeg_threads:-0} # the -threads option for ffmpeg encode (0=a command -v convert >/dev/null 2>&1 || { echo "ImageMagick is a required dependency, aborting..." >&2; exit 1; } command -v identify >/dev/null 2>&1 || { echo "ImageMagick is a required dependency, aborting..." >&2; exit 1; } +command -v rsync >/dev/null 2>&1 || { echo "rsync is a required dependency, aborting..." >&2; exit 1; } + +if [ "$download_button" = true ] +then + command -v zip >/dev/null 2>&1 || { echo "zip is a required dependency, aborting..." >&2; exit 1; } +fi # file extensions for each video format video_format_extensions=("h264" "mp4" "h265" "mp4" "vp9" "webm" "vp8" "webm" "ogv" "ogv")