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

Print version without label #23

Open
marcuslindblom opened this issue Feb 13, 2020 · 1 comment
Open

Print version without label #23

marcuslindblom opened this issue Feb 13, 2020 · 1 comment

Comments

@marcuslindblom
Copy link

marcuslindblom commented Feb 13, 2020

Is it possible to print the version without the label? I need to read the version and use it to tag containers with the same version. Now it prints like this: ProductVersion: 0.0.1-preview.1 and I only need 0.0.1-preview.1.

One way to solve this is to do something like this:

PRODUCT_VERSION=$(aver -p [PATH])
VERSION="${PRODUCT_VERSION##* }"
echo $VERSION
@draganjovanovic1
Copy link
Member

Currently it is not possible, but it makes sense not to print name of the property in front of the value when requesting exact assembly property. Labels are required for -A flag only since all properties are printed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants