History

Replace "which" with "command -v".

Split2flac is incompatible with the dash (a POSIX compliant /bin/sh implementation) due to the use of the "&>" output redirection operator in conjunction with the "which" commands. In order to fix this, the "&>" operator has been replaced by ">", and (in order to avoid the outputs to stderr) "which" has been replaced by "command -v".

Marc Joliet committed 13 years ago

Commit 8660e5b1 parent 2393a491 file · +2 −2Browse files

Unified · Split

split2flac+2−2
@@ -224,11 +224,11 @@ if [ ${SAVE} -eq 1 ]; then · 223 unmodified lines
224fi224fi
225 225
226# use flake if possible226# use flake if possible
227which flake &>/dev/null && FLAC_ENCODER="flake" || FLAC_ENCODER="flac"227command -v flake >/dev/null && FLAC_ENCODER="flake" || FLAC_ENCODER="flac"
228 228
229METAFLAC="metaflac --no-utf8-convert"229METAFLAC="metaflac --no-utf8-convert"
230VORBISCOMMENT="vorbiscomment -R -a"230VORBISCOMMENT="vorbiscomment -R -a"
231which mid3v2 &>/dev/null && ID3TAG="mid3v2" || ID3TAG="id3tag -2"231command -v mid3v2 >/dev/null && ID3TAG="mid3v2" || ID3TAG="id3tag -2"
232MP4TAGS="mp4tags"232MP4TAGS="mp4tags"
233GETTAG="cueprint -n 1 -t"233GETTAG="cueprint -n 1 -t"
234VALIDATE="sed s/[^][[:space:][:alnum:]&_#,.'\"\(\)!-]//g"234VALIDATE="sed s/[^][[:space:][:alnum:]&_#,.'\"\(\)!-]//g"

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