File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change
1
+ # v0.2.2-dev
2
+
3
+ * Bug fixes
4
+ * Fix uninstall to proper purge files.
5
+
1
6
# v0.2.1 (2013-12-08)
2
7
3
8
* Enhancements
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ See the [issue list of enhancements](https://github.com/guedes/pgvm/issues?label
284
284
Origins
285
285
-------
286
286
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 ) .
288
288
289
289
290
290
Copyright and License
Original file line number Diff line number Diff line change @@ -69,7 +69,12 @@ remove()
69
69
break
70
70
elif [ $version == " --all" ]
71
71
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
73
78
echo -e " $VERSIONS "
74
79
rm -rf ${pgvm_environments} /*
75
80
if [ $purge -eq 1 ]
@@ -90,7 +95,12 @@ remove()
90
95
break
91
96
fi
92
97
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
94
104
rm -rf ${pgvm_environments} /$version
95
105
96
106
if [ $purge -eq 1 ]
@@ -116,14 +126,16 @@ uninstall()
116
126
117
127
force=0
118
128
purge=0
129
+ opt_force=0
130
+ opt_purge=0
119
131
120
132
parse_options $*
121
133
122
- if [ -n $opt_purge ]
134
+ if [ $opt_purge -ne 0 ]
123
135
then
124
136
purge=1
125
137
fi
126
- if [ -n $opt_force ]
138
+ if [ $opt_force -ne 0 ]
127
139
then
128
140
force=1
129
141
fi
You can’t perform that action at this time.
0 commit comments