commit ebcec634de53cdabdff92ae0b3b044ecc5d39f5e parent 74214cbeaa93613b560bec876f380804aa0302ba Author: falkTX <falktx@falktx.com> Date: Sat, 12 Jun 2021 10:13:28 +0100 Fix for realpath not being available on all systems Diffstat:
M | utils/generate-ttl.sh | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/utils/generate-ttl.sh b/utils/generate-ttl.sh @@ -1,5 +1,12 @@ #!/bin/bash +# function not available on some systems +if ! which realpath 2>/dev/null; then + function realpath() { + [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" + } +fi + set -e if [ ! -d bin ]; then