We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b3abd5f + ce99f3f commit 1cf68dbCopy full SHA for 1cf68db
bashpack.sh
@@ -245,7 +245,11 @@ delete_cli() {
245
echo ""
246
247
if [ -f $file_main ]; then
248
- echo "Error: $NAME $VERSION located at $(which $NAME_ALIAS) has not been uninstalled."
+ if [[ $exclude_main = "exclude_main" ]]; then
249
+ echo "$NAME $VERSION has been uninstalled ($file_main has been kept)."
250
+ else
251
+ echo "Error: $NAME $VERSION located at $(which $NAME_ALIAS) has not been uninstalled." && exit
252
+ fi
253
else
254
echo "Success! $NAME $VERSION has been uninstalled."
255
fi
0 commit comments