Unified · Split
| @@ -170,6 +170,8 @@ case ${FORMAT} in · 169 unmodified lines | |||
| 170 | *) emsg "Unknown output format \"${FORMAT}\""; exit 1;; | 170 | *) emsg "Unknown output format \"${FORMAT}\""; exit 1;; |
| 171 | esac | 171 | esac |
| 172 | 172 | ||
| 173 | $msg "${cG}Output dir :$cZ ${DIR:?Output directory was not set}" | ||
| 174 | |||
| 173 | # splits a file | 175 | # splits a file |
| 174 | split_file ( ) { | 176 | split_file ( ) { |
| 175 | FILE="$1" | 177 | FILE="$1" |
| @@ -257,7 +259,6 @@ split_file ( ) { · 81 unmodified lines | |||
| 257 | 259 | ||
| 258 | $msg "${cG}Cue sheet :$cZ ${CUE}" | 260 | $msg "${cG}Cue sheet :$cZ ${CUE}" |
| 259 | $msg "${cG}Cover image :$cZ ${PIC:-not set}" | 261 | $msg "${cG}Cover image :$cZ ${PIC:-not set}" |
| 260 | $msg "${cG}Output dir :$cZ ${DIR:?Output directory was not set}" | ||
| 261 | 262 | ||
| 262 | # file removal warning | 263 | # file removal warning |
| 263 | if [ ${REMOVE} -eq 1 ]; then | 264 | if [ ${REMOVE} -eq 1 ]; then |
| @@ -504,7 +505,7 @@ if [ -d "${INPATH}" ]; then · 240 unmodified lines | |||
| 504 | emsg "Directory \"${INPATH}\" is not accessible" | 505 | emsg "Directory \"${INPATH}\" is not accessible" |
| 505 | exit 1 | 506 | exit 1 |
| 506 | fi | 507 | fi |
| 507 | $msg "${cG}Input dir :$cZ ${INPATH}$cZ" | 508 | $msg "${cG}Input dir :$cZ ${INPATH}$cZ\n" |
| 508 | split_dir "${INPATH}" | 509 | split_dir "${INPATH}" |
| 509 | elif [ "${INPATH}" ]; then | 510 | elif [ "${INPATH}" ]; then |
| 510 | split_file "${INPATH}" | 511 | split_file "${INPATH}" |