Browse Source

Fix for realpath not being available on all systems

pull/287/head
falkTX 4 years ago
parent
commit
ebcec634de
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      utils/generate-ttl.sh

+ 7
- 0
utils/generate-ttl.sh View File

@@ -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


Loading…
Cancel
Save