Move gpu shorthand

This commit is contained in:
Dylan 2016-01-19 13:52:33 +11:00
parent 76c3e949fe
commit 10c3ff2d3e
1 changed files with 8 additions and 8 deletions

16
fetch
View File

@ -645,14 +645,6 @@ getgpu () {
gpu=$(lspci | grep "VGA" | grep -o '\[.*\]') gpu=$(lspci | grep "VGA" | grep -o '\[.*\]')
gpu=${gpu//[} gpu=${gpu//[}
gpu=${gpu//]} gpu=${gpu//]}
if [ "$gpu_shorthand" == "on" ]; then
gpu=${gpu/'Rev. '?}
gpu=${gpu/'AMD/ATI'/AMD}
gpu=${gpu/'Tahiti' }
gpu=${gpu/'PRO' }
gpu=${gpu/'OEM' }
fi
;; ;;
"Mac OS X") "Mac OS X")
@ -683,6 +675,14 @@ getgpu () {
gpu=${gpu// /} gpu=${gpu// /}
;; ;;
esac esac
if [ "$gpu_shorthand" == "on" ]; then
gpu=${gpu/'Rev. '?}
gpu=${gpu/'AMD/ATI'/AMD}
gpu=${gpu/'Tahiti' }
gpu=${gpu/'PRO' }
gpu=${gpu/'OEM' }
fi
} }
# Get memory # Get memory