Skip to content

Commit ce99f3f

Browse files
ggtrdggtrd
authored andcommitted
improving message on delete_cli()
1 parent 947b2aa commit ce99f3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bashpack.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,11 @@ delete_cli() {
245245
echo ""
246246

247247
if [ -f $file_main ]; then
248-
echo "Error: $NAME $VERSION located at $(which $NAME_ALIAS) has not been uninstalled."
248+
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
249253
else
250254
echo "Success! $NAME $VERSION has been uninstalled."
251255
fi

0 commit comments

Comments
 (0)