Skip to content

Commit 1cf68db

Browse files
authored
Merge pull request #7 from bashpack-project/working
improving message on delete_cli()
2 parents b3abd5f + ce99f3f commit 1cf68db

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)