Skip to content

Commit

Permalink
fix: Improve message when installing no packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall authored and jwerle committed Aug 24, 2023
1 parent 9c34a8f commit df95293
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ bpkg_install () {
done
done

if ((${#pkgs[@]} == 0)); then
bpkg_error 'no packages supplied'
return 1
fi

if (( did_fail == 1 )); then
bpkg_error 'package not found on any remote'
return 1
Expand Down

0 comments on commit df95293

Please sign in to comment.