Skip to content

Commit 1f8feb2

Browse files
committed
Use local vars in git clone function
Signed-off-by: thepetk <[email protected]>
1 parent eb63bad commit 1f8feb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build-tools/cache_samples.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ set -eu
1212
# 2: sampleDir (output directory of the clone command)
1313
# 3: revision (the prefered revision of the git repo we want to clone)
1414
function clone_sample_repo() {
15-
gitRepository="$1"
16-
sampleDir="$2"
17-
revision="$3"
15+
local gitRepository="$1"
16+
local sampleDir="$2"
17+
local revision="$3"
1818
if [[ $revision == "null" ]]; then
1919
echo "cloning $gitRepository to $sampleDir"
2020
git clone $gitRepository $sampleDir

0 commit comments

Comments
 (0)