mirror of https://git.rancher.io/charts
Move fetch after cd command
parent
128d10be16
commit
cbf706c0bf
|
@ -28,9 +28,9 @@ for f in packages/*; do
|
|||
if [[ $type == 'git' ]]; then
|
||||
mkdir -p /tmp/tmp-charts
|
||||
git clone --depth=1 --no-tags $url /tmp/tmp-charts
|
||||
git fetch origin $commit
|
||||
pwd=$(pwd)
|
||||
cd /tmp/tmp-charts
|
||||
git fetch origin $commit
|
||||
git checkout $commit
|
||||
cd $pwd
|
||||
cp -r /tmp/tmp-charts/${subdirectory} ${f}/charts-original
|
||||
|
|
Loading…
Reference in New Issue