|
@@ -174,11 +174,13 @@ function restore_remote_profanity {
|
174
|
174
|
}
|
175
|
175
|
|
176
|
176
|
function remove_profanity {
|
177
|
|
- cd $INSTALL_DIR/profanity
|
178
|
|
- make uninstall
|
|
177
|
+ if [ -f /usr/local/bin/profanity ]; then
|
|
178
|
+ cd $INSTALL_DIR/profanity
|
|
179
|
+ make uninstall
|
179
|
180
|
|
180
|
|
- remove_completion_param install_profanity
|
181
|
|
- sed -i '/profanity/d' $COMPLETION_FILE
|
|
181
|
+ remove_completion_param install_profanity
|
|
182
|
+ sed -i '/profanity/d' $COMPLETION_FILE
|
|
183
|
+ fi
|
182
|
184
|
}
|
183
|
185
|
|
184
|
186
|
function install_profanity {
|