Unified · Split
| @@ -36,8 +36,8 @@ NORENAME=0 · 35 unmodified lines | |||
| 36 | NOPIC=0 | 36 | NOPIC=0 |
| 37 | REMOVE=0 | 37 | REMOVE=0 |
| 38 | PIC_SIZE="192x192" | 38 | PIC_SIZE="192x192" |
| 39 | FORMAT=${0##.*split2} | 39 | FORMAT="${0##.*split2}" |
| 40 | FORMAT=${FORMAT%.sh} | 40 | FORMAT="${FORMAT%.sh}" |
| 41 | 41 | ||
| 42 | # load settings | 42 | # load settings |
| 43 | eval $(cat "${CONFIG}" 2>/dev/null) | 43 | eval $(cat "${CONFIG}" 2>/dev/null) |
| @@ -149,8 +149,8 @@ if [ -z "${CUE}" ]; then · 105 unmodified lines | |||
| 149 | fi | 149 | fi |
| 150 | 150 | ||
| 151 | # print some info and check arguments | 151 | # print some info and check arguments |
| 152 | echo "Input file :" ${FILE:?"No input filename given. Use -h for help."} | 152 | echo "Input file : ${FILE:?'No input filename given. Use -h for help.'}" |
| 153 | echo "Cue sheet :" ${CUE:?"No cue sheet"} | 153 | echo "Cue sheet : ${CUE:?'No cue sheet'}" |
| 154 | 154 | ||
| 155 | if [ -n "${CHARSET}" ]; then | 155 | if [ -n "${CHARSET}" ]; then |
| 156 | echo "Cue charset : ${CHARSET} -> utf-8" | 156 | echo "Cue charset : ${CHARSET} -> utf-8" |
| @@ -193,8 +193,8 @@ elif [ -z "${PIC}" ]; then · 36 unmodified lines | |||
| 193 | fi | 193 | fi |
| 194 | fi | 194 | fi |
| 195 | 195 | ||
| 196 | echo "Cover image :" ${PIC:-"not set"} | 196 | echo "Cover image : ${PIC:-'not set'}" |
| 197 | echo "Output dir :" ${DIR:?"Output directory wasn't set"} | 197 | echo "Output dir : ${DIR:?'Output directory wasn\'t set'}" |
| 198 | 198 | ||
| 199 | # file removal warning | 199 | # file removal warning |
| 200 | if [ ${REMOVE} -eq 1 ]; then | 200 | if [ ${REMOVE} -eq 1 ]; then |