Skip to content

Commit 5442a42

Browse files
committed
Update repo dir as absolute path
1 parent b4fe886 commit 5442a42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/getSHAs.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ getSHAs()
6464
# Get SHA for non-external tests by find .git dir
6565
cd "$TEST_ROOT" || exit
6666
find "$TEST_ROOT" -type d -name ".git" | while read -r gitDir; do
67-
repoDir=$(dirname "$gitDir")
67+
repoDir=$(realpath "$(dirname "$gitDir")")
6868
cd "$repoDir" || continue
6969
# append the info into $SHAs_FILR
7070
{ echo "================================================"; echo "timestamp: $(timestamp)"; echo "repo dir: $repoDir"; echo "git repo: "; git remote show origin -n | grep "Fetch URL:"; echo "sha:"; git rev-parse HEAD; } 2>&1 | tee -a "$SHAs_FILE"
@@ -75,7 +75,6 @@ getSHAs()
7575
if [[ "$BUILD_LIST" == *"external"* ]]; then
7676
for subDir in "$TEST_ROOT"/external/*/; do
7777
echo "subdir is $subDir"
78-
ls "$subDir"
7978
find "$subDir" -type f -name 'Dockerfile.*'
8079
if [[ $(find "$subDir" -type f -name 'Dockerfile.*') ]]; then
8180
propertiesFile="$subDir/test.properties"

0 commit comments

Comments
 (0)