Skip to content
This repository was archived by the owner on Aug 8, 2018. It is now read-only.

Commit de09051

Browse files
committed
Update aws-api-import.sh to work on non-GNU
`readlink -f` is specific to GNU coreutils and generates messages like this on Mac OS X: $ ./src/aws-apigateway-importer/aws-api-import.sh readlink: illegal option -- f usage: readlink [-n] [file ...] Error: Unable to access jarfile ./target/aws-apigateway-importer-1.0.3-SNAPSHOT-jar-with-dependencies.jar Instead we use perl, which is pretty much guaranteed to be installed everywhere.
1 parent 626a9c9 commit de09051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-api-import.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
2-
root=$(dirname "$(readlink -f "$0")")
2+
root=$(dirname $(perl -MCwd=abs_path -e 'print abs_path(shift)' $0))
33

44
java -jar $root/target/aws-apigateway-importer-1.0.3-SNAPSHOT-jar-with-dependencies.jar "$@"

0 commit comments

Comments
 (0)