mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2025-02-25 16:34:18 +01:00
uniforming
This commit is contained in:
parent
c715431c37
commit
1577451a41
@ -37,17 +37,17 @@ EOF
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "${#}" -eq 0 ]; then
|
if [[ "${#}" -eq 0 ]]; then
|
||||||
_output_prompt
|
_output_prompt
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${#}" -eq 1 ]; then
|
elif [[ "${#}" -eq 1 ]]; then
|
||||||
if [[ "${1}" = '-h' ]]; then
|
if [[ "${1}" = '-h' ]]; then
|
||||||
_output_help
|
_output_help
|
||||||
else
|
else
|
||||||
echo -e "${RED}ERROR:${NC} '$1' is an invalid argument."
|
echo -e "${RED}ERROR:${NC} '$1' is an invalid argument."
|
||||||
_output_prompt
|
_output_prompt
|
||||||
fi
|
fi
|
||||||
elif [ "${#}" -eq 2 ]; then
|
elif [[ "${#}" -eq 2 ]]; then
|
||||||
if [[ ! -f "${1}" ]]; then
|
if [[ ! -f "${1}" ]]; then
|
||||||
echo -e "${RED}ERROR:${NC} There is no file '$(basename ${1})'."
|
echo -e "${RED}ERROR:${NC} There is no file '$(basename ${1})'."
|
||||||
_output_prompt
|
_output_prompt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user