From c055e9bbb46585e7890e62f109d148d6cc6d3a20 Mon Sep 17 00:00:00 2001 From: shenmo Date: Mon, 11 Dec 2023 15:28:02 +0000 Subject: [PATCH] update tool/spark-dstore-patch. Signed-off-by: shenmo --- tool/spark-dstore-patch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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