History

use double quotes in some expressions

Serge Zirukin committed 16 years ago

Commit 259cc3d1 parent bb962931 file · +6 −6Browse files

Unified · Split

split2flac.sh+6−6
@@ -36,8 +36,8 @@ NORENAME=0 · 35 unmodified lines
3636 NOPIC=0
3737 REMOVE=0
3838 PIC_SIZE="192x192"
39−FORMAT=${0##.*split2}
40−FORMAT=${FORMAT%.sh}
39+FORMAT="${0##.*split2}"
40+FORMAT="${FORMAT%.sh}"
4141
4242 # load settings
4343 eval $(cat "${CONFIG}" 2>/dev/null)
@@ -149,8 +149,8 @@ if [ -z "${CUE}" ]; then · 105 unmodified lines
149149 fi
150150
151151 # print some info and check arguments
152−echo "Input file :" ${FILE:?"No input filename given. Use -h for help."}
153−echo "Cue sheet :" ${CUE:?"No cue sheet"}
152+echo "Input file : ${FILE:?'No input filename given. Use -h for help.'}"
153+echo "Cue sheet : ${CUE:?'No cue sheet'}"
154154
155155 if [ -n "${CHARSET}" ]; then
156156 echo "Cue charset : ${CHARSET} -> utf-8"
@@ -193,8 +193,8 @@ elif [ -z "${PIC}" ]; then · 36 unmodified lines
193193 fi
194194 fi
195195
196−echo "Cover image :" ${PIC:-"not set"}
197−echo "Output dir :" ${DIR:?"Output directory wasn't set"}
196+echo "Cover image : ${PIC:-'not set'}"
197+echo "Output dir : ${DIR:?'Output directory wasn\'t set'}"
198198
199199 # file removal warning
200200 if [ ${REMOVE} -eq 1 ]; then

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t