Tuesday, August 16, 2016

Why Doesn't This Work?

I have a bash script. Here's a portion:

pi=$(subscription-manager list --available | awk '/Pool ID/ {print $3}')
echo $pi
subscription-manager attach --pool=$pi

When I run it, it shows:

[vagrant@rhel-cdk shared]$ sudo ./installdotnet.sh
 could not be found.1564576f701564c87d8f9357e

Why is the pool id getting mangled??

1 comment:

erik said...

Sorry, no idea. Have you tried posting the question to Stack Overflow (or one if its ilk)?