Delete $OUT_OF_SOURCE_DIR under --force even without Yotta
The deletion of "$OUT_OF_SOURCE_DIR" had mistakenly been lumped together with Yotta.
This commit is contained in:
parent
c9663b1685
commit
c780095901
1 changed files with 2 additions and 1 deletions
|
@ -366,8 +366,9 @@ pre_parse_command_line () {
|
||||||
|
|
||||||
pre_check_git () {
|
pre_check_git () {
|
||||||
if [ $FORCE -eq 1 ]; then
|
if [ $FORCE -eq 1 ]; then
|
||||||
|
rm -rf "$OUT_OF_SOURCE_DIR"
|
||||||
if [ $YOTTA -eq 1 ]; then
|
if [ $YOTTA -eq 1 ]; then
|
||||||
rm -rf yotta/module "$OUT_OF_SOURCE_DIR"
|
rm -rf yotta/module
|
||||||
fi
|
fi
|
||||||
git checkout-index -f -q $CONFIG_H
|
git checkout-index -f -q $CONFIG_H
|
||||||
cleanup
|
cleanup
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue