diff --git a/upload-prebuilt-binaries.sh b/upload-prebuilt-binaries.sh index 75d94c5..8c99325 100755 --- a/upload-prebuilt-binaries.sh +++ b/upload-prebuilt-binaries.sh @@ -37,6 +37,6 @@ if [[ $1 ]]; then echo done! fi else - export script=$(readlink -f $0); + export script="$( cd "$( dirname "$0" )" &> /dev/null && pwd )/$(basename $0)"; find node_modules -wholename "*/build/Release/*.node" -exec bash -c '[[ $(dirname $1) == *build/Release ]] && [[ $1 =~ node_modules/(.*)/build/Release/(.*).node ]] && [[ ${BASH_REMATCH[2]} != ffmpeg ]] && $script $1' bash {} \; fi \ No newline at end of file