Skip to content

Commit 7824807

Browse files
committed
Merge branch 'master' of github.com:guedes/pgvm
2 parents 6419c3e + 7d9d12f commit 7824807

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v0.2.2-dev
2+
3+
* Bug fixes
4+
* Fix uninstall to proper purge files.
5+
16
# v0.2.1 (2013-12-08)
27

38
* Enhancements

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ See the [issue list of enhancements](https://github.com/guedes/pgvm/issues?label
284284
Origins
285285
-------
286286

287-
`pgvm` was inspired by [rvm](https://rvm.beginrescueend.com), a Ruby enVironment Manager created by [Wayne E. Seguin](http://wayneseguin.us).
287+
`pgvm` was inspired by [rvm](https://rvm.io), a Ruby enVironment Manager created by [Wayne E. Seguin](http://wayneseguin.us).
288288

289289

290290
Copyright and License

actions/uninstall

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ remove()
6969
break
7070
elif [ $version == "--all" ]
7171
then
72-
echo -e "Removing the following Postgres versions sources and installed by pgvm!\n"
72+
if [ $purge -eq 1 ]
73+
then
74+
echo -e "Removing the following Postgres versions sources and installed by pgvm!\n"
75+
else
76+
echo -e "Removing the following Postgres versions installed by pgvm!\n"
77+
fi
7378
echo -e "$VERSIONS"
7479
rm -rf ${pgvm_environments}/*
7580
if [ $purge -eq 1 ]
@@ -90,7 +95,12 @@ remove()
9095
break
9196
fi
9297

93-
echo -e "Removing Postgres version $version installed and your source by pgvm!\n"
98+
if [ $purge -eq 1 ]
99+
then
100+
echo -e "Removing Postgres version $version installed and your source by pgvm!\n"
101+
else
102+
echo -e "Removing Postgres version $version installed by pgvm!\n"
103+
fi
94104
rm -rf ${pgvm_environments}/$version
95105

96106
if [ $purge -eq 1 ]
@@ -116,14 +126,16 @@ uninstall()
116126

117127
force=0
118128
purge=0
129+
opt_force=0
130+
opt_purge=0
119131

120132
parse_options $*
121133

122-
if [ -n $opt_purge ]
134+
if [ $opt_purge -ne 0 ]
123135
then
124136
purge=1
125137
fi
126-
if [ -n $opt_force ]
138+
if [ $opt_force -ne 0 ]
127139
then
128140
force=1
129141
fi

0 commit comments

Comments
 (0)