Merge pull request #423 from AlexxandreFS/fix_cut

fix: cut --output-delimiter
pull/446/head
Alessandro 3 years ago committed by GitHub
commit 8f97722c57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -608,7 +608,7 @@ void init_system_info(){
trim(os);
gpu = exec("lspci | grep VGA | head -n1 | awk -vRS=']' -vFS='[' '{print $2}' | sed '/^$/d' | tail -n1");
trim(gpu);
driver = exec("glxinfo | grep 'OpenGL version' | sed 's/^.*: //' | cut -d' ' --output-delimiter=$'\n' -f1- | grep -v '(' | grep -v ')' | tr '\n' ' ' | cut -c 1-");
driver = exec("glxinfo | grep 'OpenGL version' | sed 's/^.*: //' | tr -s ' ' '\n' | grep -v '(' | grep -v ')' | tr '\n' ' ' | cut -c 1-");
trim(driver);
// Get WINE version

Loading…
Cancel
Save