diff options
Diffstat (limited to '')
| -rwxr-xr-x | transcode.sh | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/transcode.sh b/transcode.sh index 817d8e2..31a2d45 100755 --- a/transcode.sh +++ b/transcode.sh @@ -1507,7 +1507,7 @@ while [[ $# -gt 0 ]]; do error "Missing value for $1" exit $EXIT_USAGE_ERROR fi - if [[ ! -n "$2" ]]; then + if [[ -z "$2" ]]; then error "Value for $1 must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1516,7 +1516,7 @@ while [[ $# -gt 0 ]]; do shift 2 ;; --backup-dir=*) - if [[ ! -n "${1#*=}" ]]; then + if [[ -z "${1#*=}" ]]; then error "Value for --backup-dir must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1529,7 +1529,7 @@ while [[ $# -gt 0 ]]; do error "Missing value for $1" exit $EXIT_USAGE_ERROR fi - if [[ ! -n "$2" ]]; then + if [[ -z "$2" ]]; then error "Value for $1 must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1538,7 +1538,7 @@ while [[ $# -gt 0 ]]; do shift 2 ;; --config-file=*) - if [[ ! -n "${1#*=}" ]]; then + if [[ -z "${1#*=}" ]]; then error "Value for --config-file must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1556,7 +1556,7 @@ while [[ $# -gt 0 ]]; do error "Missing value for $1" exit $EXIT_USAGE_ERROR fi - if [[ ! -n "$2" ]]; then + if [[ -z "$2" ]]; then error "Value for $1 must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1564,7 +1564,7 @@ while [[ $# -gt 0 ]]; do shift 2 ;; --encode-file=*) - if [[ ! -n "${1#*=}" ]]; then + if [[ -z "${1#*=}" ]]; then error "Value for --encode-file must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1604,7 +1604,7 @@ while [[ $# -gt 0 ]]; do error "Missing value for $1" exit $EXIT_USAGE_ERROR fi - if [[ ! -n "$2" ]]; then + if [[ -z "$2" ]]; then error "Value for $1 must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1613,7 +1613,7 @@ while [[ $# -gt 0 ]]; do shift 2 ;; --size-report-file=*) - if [[ ! -n "${1#*=}" ]]; then + if [[ -z "${1#*=}" ]]; then error "Value for --size-report-file must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1663,7 +1663,7 @@ while [[ $# -gt 0 ]]; do --hwaccel=*) HWACCEL=1 HWACCEL_VALUE="${1#*=}" - if [[ ! -n "$HWACCEL_VALUE" ]]; then + if [[ -z "$HWACCEL_VALUE" ]]; then error "Value for --hwaccel must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1680,7 +1680,7 @@ while [[ $# -gt 0 ]]; do error "Missing value for $1" exit $EXIT_USAGE_ERROR fi - if [[ ! -n "$2" ]]; then + if [[ -z "$2" ]]; then error "Value for $1 must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1689,7 +1689,7 @@ while [[ $# -gt 0 ]]; do shift 2 ;; --preset=*) - if [[ ! -n "${1#*=}" ]]; then + if [[ -z "${1#*=}" ]]; then error "Value for --preset must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1702,7 +1702,7 @@ while [[ $# -gt 0 ]]; do error "Missing value for:" "$1" exit $EXIT_USAGE_ERROR fi - if [[ ! -n "$2" ]]; then + if [[ -z "$2" ]]; then error "Value for $1 must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1711,7 +1711,7 @@ while [[ $# -gt 0 ]]; do shift 2 ;; --ffmpeg-loglevel=*) - if [[ ! -n "${1#*=}" ]]; then + if [[ -z "${1#*=}" ]]; then error "Value for --ffmpeg-loglevel must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1724,7 +1724,7 @@ while [[ $# -gt 0 ]]; do error "Missing value for:" "$1" exit $EXIT_USAGE_ERROR fi - if [[ ! -n "$2" ]]; then + if [[ -z "$2" ]]; then error "Value for $1 must not be empty" exit $EXIT_USAGE_ERROR fi @@ -1737,7 +1737,7 @@ while [[ $# -gt 0 ]]; do shift 2 ;; --video-stream=*) - if [[ ! -n "${1#*=}" ]]; then + if [[ -z "${1#*=}" ]]; then error "Value for --video-stream must not be empty" exit $EXIT_USAGE_ERROR fi |
