Skip to content

Commit f87c5b8

Browse files
committed
Fix issue with dir
Signed-off-by: thepetk <[email protected]>
1 parent 9c5974d commit f87c5b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build-tools/cache_samples.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ function clone_sample_repo() {
1515
local repoUrl="$1"
1616
local repoOutputDir="$2"
1717
local repoRevision="$3"
18-
echo $repoUrl $repoOutputDir $repoRevision
1918
git clone $repoUrl $repoOutputDir
2019
if [[ $repoRevision != "null" ]]; then
21-
git checkout $repoRevision
20+
cd $repoOutputDir && git checkout $repoRevision && cd -
2221
fi
2322
}
2423

0 commit comments

Comments
 (0)