From 154806bf59007de2daf0527e52bf01cd27e70f15 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 5 Mar 2022 19:12:26 +0100 Subject: [PATCH] Fix readlink for macOS Signed-off-by: Stefan Weil --- bin/ocr-validate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ocr-validate.sh b/bin/ocr-validate.sh index 25b8310..8187f66 100755 --- a/bin/ocr-validate.sh +++ b/bin/ocr-validate.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Default to the parent dir of this script. Overwritten by `make install` -SHAREDIR="$(readlink -f "$(dirname "$(readlink -f "$0")")/..")" +SHAREDIR="$(readlink "$(dirname "$(readlink "$0")")/..")" source "$SHAREDIR/lib.sh" #{{{ show_usage () @@ -55,7 +55,7 @@ main () { if [[ "$file" == "-" ]];then ((DEBUG > 1)) && loginfo "Reading from STDIN" else - file=$(readlink -f "$file") + file=$(readlink "$file") if [[ ! -e "$file" ]];then show_usage "No such file: '$file'" fi