mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00

- Use '-n' instead of '! -z' - Quote all the things... - Enclose variable references in '{}' Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
14 lines
290 B
Bash
Executable file
14 lines
290 B
Bash
Executable file
#!/bin/sh
|
|
BASEDIR="$( dirname "$0" )"
|
|
|
|
if [ "$(uname -s)" = "Darwin" ] ; then
|
|
DLL_TOOL="otool -L"
|
|
else
|
|
DLL_TOOL="ldd"
|
|
fi
|
|
|
|
if "${DLL_TOOL}" "${BASEDIR}/AtomicFileTest" | grep -q 'libfiu' ; then
|
|
exec fiu-run -x "${BASEDIR}/AtomicFileTest"
|
|
else
|
|
exec "${BASEDIR}/AtomicFileTest"
|
|
fi
|