Skip to content

Commit

Permalink
Merge pull request #62 from bit101/macports_active
Browse files Browse the repository at this point in the history
macports check if port is active
  • Loading branch information
bit101 authored Nov 24, 2023
2 parents 2e26c6c + c70cfdf commit 46d043d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 46d043d

Please sign in to comment.