Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macports check if port is active #62

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Read more here: [Package Manager Integration](https://github.com/bit101/version/

## Info

- Current release: v1.5.1 (200+ recognized tools)
- Current release: v1.5.2 (200+ recognized tools)

## Installing / Uninstalling

Expand Down
4 changes: 2 additions & 2 deletions version
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

ver="v1.5.1"
ver="v1.5.2"

# note: replace - with _ in tool name. e.g. pkg-config -> tools_pkg_config
# script will sanitize the input the same way
Expand Down Expand Up @@ -372,7 +372,7 @@ try_macports() {
# macports is installed. let's try it
echo " checking macports..."

result=$(port installed $1 2>/dev/null)
result=$(port installed $1 and active 2>/dev/null)
if [ "$result" != "" ]
then
echo $result | sed -Ene "s/^.*$1 (.*)/$1 version: \1/p"
Expand Down
Loading