mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2025-10-18 20:00:09 +02:00
Compare commits
106 Commits
v2017-10-1
...
v2018-02-1
Author | SHA1 | Date | |
---|---|---|---|
|
1ef6c3305b | ||
|
9c4da4102a | ||
|
c47a7a534f | ||
|
4d8fdc9f4e | ||
|
ae590706b0 | ||
|
e84f0a9fb6 | ||
|
e2850d38c0 | ||
|
8927478efb | ||
|
3c815b1f3b | ||
|
58aa0549ff | ||
|
4a83b45e7e | ||
|
f6b44c56ce | ||
|
8149aa163c | ||
|
94f935198f | ||
|
c04c9ff12f | ||
|
64787edd4e | ||
|
f995e8b483 | ||
|
dea85d1e47 | ||
|
e9fd3fd002 | ||
|
debc510205 | ||
|
32260c405f | ||
|
d142564f36 | ||
|
d41674a267 | ||
|
99450e61de | ||
|
1fec9b21c8 | ||
|
42189e5b94 | ||
|
929f92a52a | ||
|
02e2f11718 | ||
|
10636e24e2 | ||
|
61b890d31c | ||
|
85a79d2eb5 | ||
|
b5ec56174a | ||
|
f0e0cf8ed3 | ||
|
5c1c336d77 | ||
|
d71793583e | ||
|
6705bdf41d | ||
|
25e779a59f | ||
|
ba0852a957 | ||
|
88024c040f | ||
|
3d9b9edf1c | ||
|
c0326ad7d9 | ||
|
0cb6827b39 | ||
|
0d68614c04 | ||
|
1e86b70ba4 | ||
|
ced142a215 | ||
|
bf301daa71 | ||
|
278ac2baae | ||
|
10b8e4c941 | ||
|
1d1b3e4eac | ||
|
5a3e437d76 | ||
|
75a7aa1299 | ||
|
cf13529485 | ||
|
7c03ae2f80 | ||
|
affae48547 | ||
|
11ab1ae731 | ||
|
6b324152ac | ||
|
edaa0a3443 | ||
|
133f81db8e | ||
|
634f72213b | ||
|
94049d2338 | ||
|
46356c3b98 | ||
|
53d3cf8a74 | ||
|
46ffb01181 | ||
|
fe937d7e4a | ||
|
2cc48104b1 | ||
|
7e7942149e | ||
|
35a217c20b | ||
|
ac0697f1c4 | ||
|
44ee05bcaf | ||
|
2e3c0b861b | ||
|
f34858d644 | ||
|
c18a193973 | ||
|
8cce1275a8 | ||
|
fa08a2dbe8 | ||
|
09e637e6c4 | ||
|
5cb449afcc | ||
|
b0f2b62767 | ||
|
48a51a6f6a | ||
|
c552ffe699 | ||
|
f4850a6010 | ||
|
0bddb123e1 | ||
|
66139ce781 | ||
|
921b75bb2e | ||
|
1e705b4914 | ||
|
cf8756ced7 | ||
|
c6a579a0bf | ||
|
494993d4c2 | ||
|
a472a09597 | ||
|
05460bde51 | ||
|
0c32e03f3a | ||
|
1ac02df52a | ||
|
24b8c5ac35 | ||
|
9fceb27952 | ||
|
1e9629051f | ||
|
b5e95143ca | ||
|
0a2e1ca63a | ||
|
21a019612c | ||
|
80ba7cfaa6 | ||
|
132a00f9e7 | ||
|
d73ae6a382 | ||
|
f427a05c89 | ||
|
3555a692dc | ||
|
11bf8d4de2 | ||
|
4ccf83b953 | ||
|
f6be6aa37e | ||
|
04432d0323 |
7
css/bootstrap.min.css
vendored
7
css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
208
css/css.css
208
css/css.css
@@ -1,3 +1,12 @@
|
|||||||
|
html, body {
|
||||||
|
line-height: 1.5;
|
||||||
|
font-size: 16px;
|
||||||
|
color: #888888;
|
||||||
|
background-color: #060606;
|
||||||
|
margin: 0;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
.grid {
|
.grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
@@ -26,21 +35,24 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 999px) {
|
@media only screen and (max-width: 999px) {
|
||||||
.grid {
|
.grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"header"
|
"header"
|
||||||
"sidebar"
|
"sidebar"
|
||||||
"content"
|
"content"
|
||||||
"footer";
|
"footer";
|
||||||
|
}
|
||||||
|
code {
|
||||||
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 1000px) {
|
@media only screen and (min-width: 1000px) {
|
||||||
.grid {
|
.grid {
|
||||||
grid-gap: 1rem;
|
grid-gap: 1rem;
|
||||||
grid-template-columns: 30% auto;
|
grid-template-columns: 25% auto;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"header header"
|
"header header"
|
||||||
"sidebar content"
|
"sidebar content"
|
||||||
@@ -48,6 +60,29 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 1500px) {
|
||||||
|
.grid {
|
||||||
|
max-width: 70%;
|
||||||
|
margin: 0 auto;
|
||||||
|
grid-template-areas:
|
||||||
|
"header header"
|
||||||
|
"sidebar content"
|
||||||
|
"footer footer";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #91cf91;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: #5cb85c;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:visited {
|
||||||
|
color: #449d44;
|
||||||
|
}
|
||||||
|
|
||||||
.license img {
|
.license img {
|
||||||
max-width: 10em;
|
max-width: 10em;
|
||||||
display: inline;
|
display: inline;
|
||||||
@@ -63,25 +98,37 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 3em;
|
font-size: 1.5em;
|
||||||
|
margin: 5px 8px 8px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heading {
|
||||||
|
font-size: 2em;
|
||||||
|
margin: 6px 0px 12px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 2em;
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.intro-lead {
|
.intro-lead {
|
||||||
font-family: 'Montserrat', sans-serif;
|
font-family: 'Montserrat', sans-serif;
|
||||||
font-size: 20px;
|
font-size: 1em;
|
||||||
}
|
|
||||||
|
|
||||||
.select-from {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
word-break: break-all;
|
padding: 2px 4px;
|
||||||
|
color: #c7254e;
|
||||||
|
background-color: #f9f2f4;
|
||||||
|
border-radius: 4px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
max-width: 800px;
|
||||||
|
white-space: normal;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
dd {
|
dd {
|
||||||
@@ -90,6 +137,10 @@ dd {
|
|||||||
|
|
||||||
dt {
|
dt {
|
||||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||||
|
word-break: break-all;
|
||||||
|
word-wrap: break-word;
|
||||||
|
white-space: normal;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@@ -100,67 +151,85 @@ img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sample-image {
|
.sample-image {
|
||||||
|
margin: 0 auto;
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
|
max-width: 500px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sample-image-small {
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-bottom: 18px;
|
||||||
|
max-width: 250px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
div {
|
div {
|
||||||
font-family: 'Merriweather', serif;
|
font-family: 'Merriweather', serif;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.sidebar a {
|
||||||
margin: 8px;
|
text-decoration: none;
|
||||||
display: inline-block;
|
}
|
||||||
vertical-align: middle;
|
|
||||||
-webkit-transform: translateZ(0);
|
.recipe, .contents-list {
|
||||||
transform: translateZ(0);
|
color: white;
|
||||||
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
|
background-color: #383838;
|
||||||
-webkit-backface-visibility: hidden;
|
padding: 14px;
|
||||||
backface-visibility: hidden;
|
font-family: "Montserrat";
|
||||||
-moz-osx-font-smoothing: grayscale;
|
letter-spacing: 0.05em;
|
||||||
|
border: 1px solid black;
|
||||||
|
cursor: pointer;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 2.5em;
|
padding-left: 2.8em;
|
||||||
-webkit-transition-duration: 0.3s;
|
transition: all .5s ease-out;
|
||||||
transition-duration: 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:before {
|
|
||||||
content: "💫";
|
|
||||||
position: absolute;
|
|
||||||
left: 1em;
|
|
||||||
padding: 0 1px;
|
|
||||||
-webkit-transform: translateZ(0);
|
|
||||||
transform: translateZ(0);
|
|
||||||
-webkit-transition-duration: 0.3s;
|
|
||||||
transition-duration: 0.3s;
|
|
||||||
-webkit-transition-property: transform;
|
|
||||||
transition-property: transform;
|
|
||||||
-webkit-transition-timing-function: ease-out;
|
|
||||||
transition-timing-function: ease-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:hover:before, .btn:focus:before, .btn:active:before {
|
|
||||||
-webkit-transform: scale(1.3) translateZ(0);
|
|
||||||
transform: scale(1.3) translateZ(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.contents-list {
|
.contents-list {
|
||||||
color: black;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contents-list:hover {
|
nav .heading {
|
||||||
color: #2a9fd6;
|
word-break: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe {
|
||||||
|
display: block;
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe:hover, .contents-list:hover {
|
||||||
|
background-color: #449d44;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe:before {
|
||||||
|
content: "💫";
|
||||||
}
|
}
|
||||||
|
|
||||||
.contents-list:before {
|
.contents-list:before {
|
||||||
content: "📼"
|
content: "📼";
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe:before, .contents-list:before {
|
||||||
|
position: absolute;
|
||||||
|
left: 1em;
|
||||||
|
padding-right: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe:hover:before, .recipe:focus:before, .recipe:active:before {
|
||||||
|
transform: scale(1.5) translateX(0.1em);
|
||||||
|
transition: 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contents-list:hover:before, .contents-list:focus:before, .contents-list:active:before {
|
||||||
|
transform: scale(1.8) translateX(0.3em);
|
||||||
|
transition: 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.codeblock {
|
.codeblock {
|
||||||
font-family: monospace
|
font-family: monospace
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
font-size: 90%;
|
|
||||||
color: #c7254e;
|
color: #c7254e;
|
||||||
background-color: #f9f2f4;
|
background-color: #f9f2f4;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
@@ -173,3 +242,30 @@ div {
|
|||||||
.footnote {
|
.footnote {
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.well {
|
||||||
|
padding: 1em;
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
background-color: #151515;
|
||||||
|
border: 1px solid #030303;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hiding {
|
||||||
|
opacity: 0;
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
position: absolute;
|
||||||
|
left: -999em;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=checkbox]:checked + div {
|
||||||
|
opacity: 1;
|
||||||
|
height: auto;
|
||||||
|
overflow: hidden;
|
||||||
|
transition: opacity .5s linear, height .5s linear;
|
||||||
|
}
|
||||||
|
BIN
img/crop_example_aftercrop1.png
Normal file
BIN
img/crop_example_aftercrop1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 245 KiB |
BIN
img/crop_example_aftercrop2.png
Normal file
BIN
img/crop_example_aftercrop2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 167 KiB |
BIN
img/crop_example_aftercrop3.png
Normal file
BIN
img/crop_example_aftercrop3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 146 KiB |
BIN
img/crop_example_orig.png
Normal file
BIN
img/crop_example_orig.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 436 KiB |
BIN
img/life.gif
Normal file
BIN
img/life.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 574 KiB |
4177
index.html
4177
index.html
File diff suppressed because it is too large
Load Diff
6
js/bootstrap.min.js
vendored
6
js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
21
js/js.js
21
js/js.js
@@ -1,24 +1,21 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$(function () {
|
|
||||||
$('[data-toggle="tooltip"]').tooltip()
|
|
||||||
});
|
|
||||||
|
|
||||||
// open recipe window if a hash is found in URL
|
// open recipe window if a hash is found in URL
|
||||||
if(window.location.hash) {
|
if(window.location.hash) {
|
||||||
id = window.location.hash
|
id = window.location.hash
|
||||||
$(id).collapse('show');
|
console.log(id.substring(1))
|
||||||
|
document.getElementById(id.substring(1)).checked = true;
|
||||||
$('html, body').animate({ scrollTop: $(id).offset().top}, 1000);
|
$('html, body').animate({ scrollTop: $(id).offset().top}, 1000);
|
||||||
$(id + " .link").empty();
|
$(id).closest('div').find('.link').empty();
|
||||||
$(id + " .link").append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>");
|
$(id).closest('div').find('.link').append("<small>Link to this command: <a href='https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"'>https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"</a></small>");
|
||||||
}
|
}
|
||||||
|
|
||||||
// add hash URL when recipe is opened
|
// add hash URL when recipe is opened
|
||||||
$('span[data-toggle="collapse"]').on("click", function(){
|
$('label[class="recipe"]').on("click", function(){
|
||||||
id = $(this).attr("data-target");
|
id = $(this).attr("for");
|
||||||
window.location.hash = id
|
window.location.hash = ('#' + id)
|
||||||
$(id + " .link").empty();
|
$('#' + id).closest('div').find('.link').empty();
|
||||||
$(id + " .link").append("<small>Link to this command: <a href="+window.location.href+">"+window.location.href+"</a></small>");
|
$('#' + id).closest('div').find('.link').append("<small>Link to this command: <a href='https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"'>https://amiaopensource.github.io/ffmprovisr/index.html"+window.location.hash+"</a></small>");
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@@ -44,7 +44,7 @@ You can read our contributor code of conduct [here](https://github.com/amiaopens
|
|||||||
|
|
||||||
## Maintainers
|
## Maintainers
|
||||||
|
|
||||||
[Ashley Blewer](https://github.com/ablwr), [Katherine Frances Nagels](https://github.com/kfrn), [Kieran O'Leary](https://github.com/kieranjol) and [Reto Kromer](https://github.com/retokromer)
|
[Ashley Blewer](https://github.com/ablwr), [Katherine Frances Nagels](https://github.com/kfrn), [Kieran O'Leary](https://github.com/kieranjol), [Reto Kromer](https://github.com/retokromer) and [Andrew Weaver](https://github.com/privatezero)
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
* Gathered using [octohatrack](https://github.com/LABHR/octohatrack)
|
* Gathered using [octohatrack](https://github.com/LABHR/octohatrack)
|
||||||
@@ -104,4 +104,6 @@ All Contributors: 22
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/InteractiveResource" rel="dct:type">work</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://amiaopensource.github.io/ffmprovisr/" property="cc:attributionName" rel="cc:attributionURL">ffmprovisr</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://github.com/amiaopensource/ffmprovisr" rel="dct:source">https://github.com/amiaopensource/ffmprovisr</a>.
|
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png"></a><br>
|
||||||
|
This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/InteractiveResource" rel="dct:type">work</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://amiaopensource.github.io/ffmprovisr/" property="cc:attributionName" rel="cc:attributionURL">ffmprovisr</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.<br>
|
||||||
|
Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://github.com/amiaopensource/ffmprovisr" rel="dct:source">https://github.com/amiaopensource/ffmprovisr</a>.
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
SCRIPT=$(basename "${0}")
|
SCRIPT=$(basename "${0}")
|
||||||
VERSION='2017-07-08'
|
VERSION="2018-02-10"
|
||||||
AUTHOR='ffmprovisr'
|
AUTHOR="ffmprovisr"
|
||||||
RED='\033[1;31m'
|
RED="\033[1;31m"
|
||||||
BLUE='\033[1;34m'
|
BLUE="\033[1;34m"
|
||||||
NC='\033[0m'
|
NC="\033[0m"
|
||||||
|
|
||||||
if [[ "${OSTYPE}" = "cygwin" ]] || [ ! $(which diff) ]; then
|
if [[ "${OSTYPE}" = "cygwin" ]] || [[ ! "$(which diff)" ]]; then
|
||||||
echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}"
|
echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -67,9 +67,8 @@ old_file=$(grep -v '^#' "${input_hash}")
|
|||||||
tmp_file=$(grep -v '^#' "${md5_tmp}")
|
tmp_file=$(grep -v '^#' "${md5_tmp}")
|
||||||
if [[ "${old_file}" = "${tmp_file}" ]]; then
|
if [[ "${old_file}" = "${tmp_file}" ]]; then
|
||||||
echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}"
|
echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}"
|
||||||
rm "${md5_tmp}"
|
|
||||||
else
|
else
|
||||||
echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}"
|
echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}"
|
||||||
diff "${input_hash}" "${md5_tmp}"
|
diff "${input_hash}" "${md5_tmp}"
|
||||||
rm "${md5_tmp}"
|
|
||||||
fi
|
fi
|
||||||
|
rm "${md5_tmp}"
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
SCRIPT=$(basename "${0}")
|
SCRIPT=$(basename "${0}")
|
||||||
VERSION='2017-07-08'
|
VERSION="2018-02-10"
|
||||||
AUTHOR='ffmprovisr'
|
AUTHOR="ffmprovisr"
|
||||||
RED='\033[1;31m'
|
RED="\033[1;31m"
|
||||||
BLUE='\033[1;34m'
|
BLUE="\033[1;34m"
|
||||||
NC='\033[0m'
|
NC="\033[0m"
|
||||||
|
|
||||||
if [[ "${OSTYPE}" = "cygwin" ]] || [ ! $(which diff) ]; then
|
if [[ "${OSTYPE}" = "cygwin" ]] || [[ ! "$(which diff)" ]]; then
|
||||||
echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}"
|
echo -e "${RED}Error: 'diff' is not installed by default. Please install 'diffutils' from Cygwin.${NC}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -64,9 +64,8 @@ old_file=$(grep -v '^#' "${input_hash}")
|
|||||||
tmp_file=$(grep -v '^#' "${md5_tmp}")
|
tmp_file=$(grep -v '^#' "${md5_tmp}")
|
||||||
if [[ "${old_file}" = "${tmp_file}" ]]; then
|
if [[ "${old_file}" = "${tmp_file}" ]]; then
|
||||||
echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}"
|
echo -e "${BLUE}'$(basename "${input_file}")' matches '$(basename "${input_hash}")'${NC}"
|
||||||
rm "${md5_tmp}"
|
|
||||||
else
|
else
|
||||||
echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}"
|
echo -e "${RED}The following differences were detected between '$(basename "${input_file}")' and '$(basename "${input_hash}")':${NC}"
|
||||||
diff "${input_hash}" "${md5_tmp}"
|
diff "${input_hash}" "${md5_tmp}"
|
||||||
rm "${md5_tmp}"
|
|
||||||
fi
|
fi
|
||||||
|
rm "${md5_tmp}"
|
||||||
|
@@ -10,7 +10,7 @@ if [[ "$(uname -s)" = "Darwin" ]] ; then
|
|||||||
else
|
else
|
||||||
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
ffmprovisr_path=$(find /usr/local/Cellar/ffmprovisr -iname 'index.html' | sort -M | tail -n1)
|
||||||
fi
|
fi
|
||||||
if [ -n "${default_browser}" ] ; then
|
if [[ -n "${default_browser}" ]] ; then
|
||||||
open -b "${default_browser}" "${ffmprovisr_path}"
|
open -b "${default_browser}" "${ffmprovisr_path}"
|
||||||
else
|
else
|
||||||
open "${ffmprovisr_path}"
|
open "${ffmprovisr_path}"
|
||||||
|
Reference in New Issue
Block a user