From c70cfdf42341be79057ed0f2efbb357bf27fa843 Mon Sep 17 00:00:00 2001 From: Keith Peters Date: Fri, 24 Nov 2023 07:35:53 -0500 Subject: [PATCH] macports check if port is active --- README.md | 2 +- version | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2038068..6d939da 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/version b/version index ca07143..185842c 100755 --- a/version +++ b/version @@ -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 @@ -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"