mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 09:26:37 +00:00
Add absapath function since Solaris lacks it.
Tests still don't work due to ancient bash though.
This commit is contained in:
parent
2ccbc54dc1
commit
2dfc056354
@ -54,6 +54,12 @@
|
||||
# }
|
||||
# runTests "$@"
|
||||
|
||||
# abspath isn't available on Solaris
|
||||
type abspath 2>/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
abspath () { case "$1" in /*)printf "%s\n" "$1";; *)printf "%s\n" "$PWD/$1";; esac; }
|
||||
fi
|
||||
|
||||
usage() {
|
||||
echo -n "\
|
||||
Usage: ${0##*/} [options] [--]
|
||||
|
Loading…
x
Reference in New Issue
Block a user