0
0
mirror of https://github.com/keepassxreboot/keepassxc.git synced 2024-09-20 04:12:15 +02:00

Check for existence of realpath instead of operating system

This commit is contained in:
Janek Bevendorff 2017-02-01 00:53:58 +01:00
parent 040b476359
commit e12cd83b80
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

View File

@ -246,7 +246,7 @@ checkTransifexCommandExists() {
# re-implement realpath for OS X (thanks mschrag)
# https://superuser.com/questions/205127/how-to-retrieve-the-absolute-path-of-an-arbitrary-file-from-the-os-x
if [ "$(uname -s)" == "Darwin" ]; then
if $(command -v realpath > /dev/null); then
realpath() {
pushd . > /dev/null
if [ -d "$1" ]; then