Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bashpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,11 @@ delete_cli() {
echo ""

if [ -f $file_main ]; then
echo "Error: $NAME $VERSION located at $(which $NAME_ALIAS) has not been uninstalled."
if [[ $exclude_main = "exclude_main" ]]; then
echo "$NAME $VERSION has been uninstalled ($file_main has been kept)."
else
echo "Error: $NAME $VERSION located at $(which $NAME_ALIAS) has not been uninstalled." && exit
fi
else
echo "Success! $NAME $VERSION has been uninstalled."
fi
Expand Down