aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/cpt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpt b/src/cpt
index 0c0f688..aa6b9ea 100755
--- a/src/cpt
+++ b/src/cpt
@@ -38,6 +38,15 @@ case "$arg" in
r|remove) arg=remove ;;
s|search) arg=search ;;
u|update) arg=update ;;
+ bi)
+ # Build and install function for cpt.
+ cpt-build "$@"
+
+ # When building multiple packages, cpt will already ask to install
+ # the packages, so no need for this here.
+ [ "$2" ] || cpt-install "$@"
+ exit
+ ;;
*) glob=1 ;;
esac