refactor(mkimg): reduce commands when update repo
Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
This commit is contained in:
parent
cab9b1a1ea
commit
fc6ab3400c
1 changed files with 4 additions and 6 deletions
10
mkimg
10
mkimg
|
@ -77,9 +77,8 @@ then
|
|||
|
||||
if [[ -d u-boot ]]; then
|
||||
pushd u-boot
|
||||
git checkout master -- ':(top)'
|
||||
git checkout master
|
||||
git pull --rebase
|
||||
git checkout HEAD -- ':(top)'
|
||||
git fetch origin
|
||||
git checkout v2023.04
|
||||
popd
|
||||
else
|
||||
|
@ -97,9 +96,8 @@ then
|
|||
|
||||
if [[ -d opensbi ]]; then
|
||||
pushd opensbi
|
||||
git checkout master -- ':(top)'
|
||||
git checkout master
|
||||
git pull --rebase
|
||||
git checkout HEAD -- ':(top)'
|
||||
git fetch origin
|
||||
git checkout v2023.04
|
||||
popd
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue