Skip to content
Open
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: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,12 @@ A working example might look like this:
PS3="Choose the package manager: "
select ITEM in bower npm gem pip
do
# exit early if selection is invalid
if [[ -z "$ITEM" ]]; then
>&2 echo "Invalid selection"
exit 1
fi

echo -n "Enter the package name: " && read PACKAGE
case $ITEM in
bower) bower install $PACKAGE ;;
Expand Down