Browse Source

Fix for missing realpath on macOS

Signed-off-by: falkTX <falktx@falktx.com>
pull/452/head
falkTX 1 year ago
parent
commit
fb0e7bff26
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 8 additions and 1 deletions
  1. +1
    -1
      utils/generate-ttl.sh
  2. +7
    -0
      utils/package-osx-bundles.sh

+ 1
- 1
utils/generate-ttl.sh View File

@@ -1,6 +1,6 @@
#!/bin/bash

# function not available on some systems
# the realpath function is not available on some systems
if ! which realpath &>/dev/null; then
function realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"


+ 7
- 0
utils/package-osx-bundles.sh View File

@@ -1,5 +1,12 @@
#!/bin/bash

# the realpath function is not available on some systems
if ! which realpath &>/dev/null; then
function realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
fi

set -e

DPF_UTILS_DIR="$(dirname $(realpath ${0}))"


Loading…
Cancel
Save