We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
XDG-configuration/.executables/port-info
Lines 17 to 21 in 1d040ab
This only checks the existence of the folder, not the exact version of the package. Need to get the package version and OS version.
Package version can come from the command, or another invocation of
port info --epoch --version --revision $package
Note that the invocation takes about a second. OS version can come from $OSTYPE (Bash one is different from Zsh one), or uname -r:
$OSTYPE
uname -r
shopt -s extglob os_version=$(uname -r) echo ${ver%%+(.+([[:digit:]]))}
See shell parameter expansion and pattern matching in Bash manual. Another option is to use a proper scripting language.
Example URL: https://packages.macports.org/openssh/
The text was updated successfully, but these errors were encountered:
No branches or pull requests
XDG-configuration/.executables/port-info
Lines 17 to 21 in 1d040ab
This only checks the existence of the folder, not the exact version of the package. Need to get the package version and OS version.
Package version can come from the command, or another invocation of
port info --epoch --version --revision $package
Note that the invocation takes about a second. OS version can come from
$OSTYPE
(Bash one is different from Zsh one), oruname -r
:See shell parameter expansion and pattern matching in Bash manual. Another option is to use a proper scripting language.
Example URL: https://packages.macports.org/openssh/
The text was updated successfully, but these errors were encountered: