Added protection against project patterns starting with - for onos-push-update-bundle.
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
| 7 | . $ONOS_ROOT/tools/build/envDefaults | 7 | . $ONOS_ROOT/tools/build/envDefaults |
| 8 | 8 | ||
| 9 | cd ~/.m2/repository | 9 | cd ~/.m2/repository |
| 10 | -jar=$(find org/onlab -type f -name '*.jar' | grep $1 | grep -v -e -tests | head -n 1) | 10 | +jar=$(find org/onlab -type f -name '*.jar' | grep -e $1 | grep -v -e -tests | head -n 1) |
| 11 | 11 | ||
| 12 | [ -z "$jar" ] && echo "No bundle $1 found for" && exit 1 | 12 | [ -z "$jar" ] && echo "No bundle $1 found for" && exit 1 |
| 13 | 13 | ... | ... |
-
Please register or login to post a comment