From b1ce3ecbb76f613d13a61bd2bd3252c0f0c8991d Mon Sep 17 00:00:00 2001 From: Luciano Iam Date: Fri, 18 Jun 2021 14:52:04 +0200 Subject: [PATCH] Rework bf156dd in a more efficient way --- utils/generate-ttl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/generate-ttl.sh b/utils/generate-ttl.sh index 9008f0a9..99ce88d1 100755 --- a/utils/generate-ttl.sh +++ b/utils/generate-ttl.sh @@ -1,7 +1,7 @@ #!/bin/bash # function not available on some systems -if ! which realpath >/dev/null 2>&1; then +if ! which realpath &>/dev/null; then function realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" }