diff --git a/examples.sh b/examples.sh index f2025dc..cdb4921 100644 --- a/examples.sh +++ b/examples.sh @@ -1,8 +1,8 @@ -#!/bin/bash +#!/bin/sh echo "Downloading example videos from archive.org..." -mkdir examples +mkdir -p examples #Please run this script sparingly!!! #examples come from https://archive.org/details/ElectricSheep diff --git a/examples_assemble.sh b/examples_assemble.sh index 15c1c8a..bfc3fd2 100644 --- a/examples_assemble.sh +++ b/examples_assemble.sh @@ -1,7 +1,9 @@ -#!/bin/bash +#!/bin/sh declare -a arr=("frameloom" "Basic usage") +mkdir -p examples + ## now loop through the above array for i in "${!arr[@]}" do diff --git a/examples_youtube.sh b/examples_youtube.sh index c80bd8a..c111719 100644 --- a/examples_youtube.sh +++ b/examples_youtube.sh @@ -1,10 +1,11 @@ -#!/bin/bash +#!/bin/sh #This example script requires that you have youtube-dl installed echo "Downloading example videos using youtube-dl..." -mkdir examples +mkdir -p examples + #11 second videos if [ ! -f ./examples/Y1.mp4 ]; then (cd examples && youtube-dl --verbose --format 'bestvideo+bestaudio/best' --audio-format best https://www.youtube.com/watch?v=u2DYOsrJrDQ) diff --git a/frameloom.sh b/frameloom.sh index 3f4dfb8..bb5c41c 100644 --- a/frameloom.sh +++ b/frameloom.sh @@ -1,6 +1,6 @@ -#!/bin/bash +#!/bin/sh -# Simple bash script version of frameloom +# Simple shell script version of frameloom # Only creates a 1:1 pattern between 2 videos # Usage : sh frameloom.sh examples/A.mp4 examples/B.mp4 examples/OUTPUT.mp4