diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-30 19:34:24 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-30 19:34:24 -0400 |
commit | 8d81be0dcd7ab9d14a88f0e981046f50e67526fe (patch) | |
tree | fbd3ad58ea42d638b3560c1fd251e37ae3df4a7b | |
parent | ddfbf73a5f675927f46da73a671a08a4f0545349 (diff) |
have mvn-localrepo fall back to a default if settings.xml doesn't existv0.3.3
-rw-r--r-- | jh-mvn-localrepo.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/jh-mvn-localrepo.sh b/jh-mvn-localrepo.sh index a126613..32a91f0 100644 --- a/jh-mvn-localrepo.sh +++ b/jh-mvn-localrepo.sh @@ -6,4 +6,8 @@ if [[ $# > 0 ]]; then exit 1 fi -xml sel -T -t -v "//*[local-name()='localRepository']" -n /etc/maven/settings.xml +if [ -e /etc/maven/settings.xml ]; then + xml sel -T -t -v "//*[local-name()='localRepository']" -n /etc/maven/settings.xml +else + echo /usr/share/maven/repository +fi |