[build] 'make reset' target will continue recursive operations if any fail (#4675)
This change allows the recursive `git clean` and `git reset` commands to continue even if they encounter an error in one of the submodules. Previously, if an error was encountered, the operation would terminate with a message similar to the following: Stopping at 'src/sonic-mgmt-framework'; script returned non-zero status.
This commit is contained in:
parent
ccd08f10dd
commit
336cf2a3c5
@ -283,8 +283,8 @@ reset :
|
|||||||
fi
|
fi
|
||||||
git clean -xfdf;
|
git clean -xfdf;
|
||||||
git reset --hard;
|
git reset --hard;
|
||||||
git submodule foreach --recursive git clean -xfdf;
|
git submodule foreach --recursive 'git clean -xfdf || true';
|
||||||
git submodule foreach --recursive git reset --hard;
|
git submodule foreach --recursive 'git reset --hard || true';
|
||||||
git submodule update --init --recursive;
|
git submodule update --init --recursive;
|
||||||
echo "Reset complete!";
|
echo "Reset complete!";
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user