Improve os-release parsing
@@ -14,7 +14,7 @@ for os_release in ${OS_RELEASE_FILES[@]} ; do
if [[ ! -e "${os_release}" ]]; then
continue
fi
- DISTRO=$(sed 1q ${os_release} | sed 's/NAME=//g' | sed 's/"//g')
+ DISTRO=$(sed -rn 's/^NAME="(.+)"/\1/p' ${os_release})
done
dependencies() {
