Update all shell scripts to use /bin/sh and not /bin/bash to make syntax less confusing during development.
This commit is contained in:
parent
25f3e605c5
commit
b8ffb02b8a
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
echo "Downloading example videos from archive.org..."
|
echo "Downloading example videos from archive.org..."
|
||||||
|
|
||||||
mkdir examples
|
mkdir -p examples
|
||||||
|
|
||||||
#Please run this script sparingly!!!
|
#Please run this script sparingly!!!
|
||||||
#examples come from https://archive.org/details/ElectricSheep
|
#examples come from https://archive.org/details/ElectricSheep
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
declare -a arr=("frameloom" "Basic usage")
|
declare -a arr=("frameloom" "Basic usage")
|
||||||
|
|
||||||
|
mkdir -p examples
|
||||||
|
|
||||||
## now loop through the above array
|
## now loop through the above array
|
||||||
for i in "${!arr[@]}"
|
for i in "${!arr[@]}"
|
||||||
do
|
do
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
#This example script requires that you have youtube-dl installed
|
#This example script requires that you have youtube-dl installed
|
||||||
|
|
||||||
echo "Downloading example videos using youtube-dl..."
|
echo "Downloading example videos using youtube-dl..."
|
||||||
|
|
||||||
mkdir examples
|
mkdir -p examples
|
||||||
|
|
||||||
#11 second videos
|
#11 second videos
|
||||||
if [ ! -f ./examples/Y1.mp4 ]; then
|
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)
|
(cd examples && youtube-dl --verbose --format 'bestvideo+bestaudio/best' --audio-format best https://www.youtube.com/watch?v=u2DYOsrJrDQ)
|
||||||
|
|
|
@ -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
|
# Only creates a 1:1 pattern between 2 videos
|
||||||
|
|
||||||
# Usage : sh frameloom.sh examples/A.mp4 examples/B.mp4 examples/OUTPUT.mp4
|
# Usage : sh frameloom.sh examples/A.mp4 examples/B.mp4 examples/OUTPUT.mp4
|
||||||
|
|
Loading…
Reference in New Issue