Committed by
Charles Chan
Fix buck run when $ONOS_DIR does not exist
Change-Id: I437e1a3f7afb30f0324260cb424fcc669ca03972
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -14,7 +14,7 @@ set -e | ... | @@ -14,7 +14,7 @@ set -e |
14 | 14 | ||
15 | ONOS_DIR=$(tar tf $ONOS_TAR | head -n 1 | cut -d/ -f1) | 15 | ONOS_DIR=$(tar tf $ONOS_TAR | head -n 1 | cut -d/ -f1) |
16 | 16 | ||
17 | -if [ -d $ONOS_DIR -a "$1" = "clean" ]; then | 17 | +if [ -d $ONOS_DIR -a "$1" = "clean" -o ! -d $ONOS_DIR ]; then |
18 | # Blitz previously unrolled onos- directory | 18 | # Blitz previously unrolled onos- directory |
19 | rm -fr $ONOS_DIR | 19 | rm -fr $ONOS_DIR |
20 | 20 | ... | ... |
-
Please register or login to post a comment