I'm trying to get a value from a system call in Ruby:
distro = system('lsb_release -is')
distver = system('lsb_release -rs | cut -c1-2')
I thought the return from the lsb_release
comes into the variables. But if I'm made a puts distro
or puts distver
I'm just getting true.
Is there any way to get the value from them?