Skip to content

Commit cb85713

Browse files
committed
m2s: allow removing the settings.xml file
1 parent c0b57dd commit cb85713

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bin/m2s.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@ elif [ $# -eq 1 ]; then
2727
exit 3
2828
fi
2929

30-
if [ ! -h ~/.m2/settings.xml ]; then
30+
if [ -e ~/.m2/settings.xml -a ! -h ~/.m2/settings.xml ]; then
3131
echo "Unable to manage settings.xml since it's not a symlink"
3232
exit 4
3333
fi
3434

35+
if [ $1 = '-u' ]; then
36+
rm ~/.m2/settings.xml
37+
exit 0
38+
fi
39+
3540
CFG=~/.m2/settings-$1.xml
3641

3742
if [ -f $CFG ] ; then

0 commit comments

Comments
 (0)