diff --git a/tool/spark-dstore-patch b/tool/spark-dstore-patch index 38b881b..bd09396 100755 --- a/tool/spark-dstore-patch +++ b/tool/spark-dstore-patch @@ -1,7 +1,7 @@ #!/bin/bash echo "----------------Running Spark DStore Patch----------------" -#!/bin/bash + enumAppInfoList() { @@ -33,7 +33,7 @@ linkDir() { fi ensureTargetDir "$targetFile" - sourceFile=$(realpath --relative-to="$targetFile" "$sourceFile" ) + sourceFile=$(realpath --relative-to="$(dirname $targetFile)" "$sourceFile" ) ln -s "$sourceFile" "$targetFile" done } @@ -122,5 +122,4 @@ else fi - echo "----------------Finished----------------" \ No newline at end of file