Skip to content

Commit

Permalink
Fix for missing realpath on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Feb 28, 2024
1 parent abe1d07 commit fb0e7bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion utils/generate-ttl.sh
Original file line number Diff line number Diff line change
@@ -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#./}"
Expand Down
7 changes: 7 additions & 0 deletions utils/package-osx-bundles.sh
Original file line number Diff line number Diff line change
@@ -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}))"
Expand Down

0 comments on commit fb0e7bf

Please sign in to comment.