timewarrior/test/AtomicFile.t
Thomas Lauf 5b87c962e7 Polish up bash scripts
- Use '-n' instead of '! -z'
- Quote all the things...
- Enclose variable references in '{}'

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-18 23:18:43 +02:00

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