Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Commit

Permalink
Changing uses of grep to $GREP for non-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Muxelmann authored Jan 20, 2022
1 parent d5e3247 commit e4f9246
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AAXtoMP3
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ CHAPTER\((.key))NAME=\(.value.title)"' "${extra_chapter_file}" > "${tmp_chapter_
if [[ "${library_file_exists}" == 1 ]]; then
asin=$(jq -r '.content_metadata.content_reference.asin' "${extra_chapter_file}")
if [[ ! -z "${asin}" ]]; then
lib_entry=$(grep "^${asin}" "${library_file}")
lib_entry=$($GREP "^${asin}" "${library_file}")
if [[ ! -z "${lib_entry}" ]]; then
series_title=$(echo "${lib_entry}" | awk -F '\t' '{print $6}')
series_sequence=$(echo "${lib_entry}" | awk -F '\t' '{print $7}')
Expand Down Expand Up @@ -800,7 +800,7 @@ do
fi

extra_crop_cover=''
cover_width=$(ffprobe -i "${cover_file}" 2>&1 | grep -Po "[0-9]+(?=x[0-9]+)")
cover_width=$(ffprobe -i "${cover_file}" 2>&1 | $GREP -Po "[0-9]+(?=x[0-9]+)")
if (( ${cover_width} % 2 == 1 )); then
if [ "$((${loglevel} > 1))" == "1" ]; then
log "Cover ${cover_file} has odd width ${cover_width}, setting extra_crop_cover to make even."
Expand Down

0 comments on commit e4f9246

Please sign in to comment.