Strip colours from pacaur

This commit is contained in:
Kevin MacMartin 2017-02-07 11:12:07 -05:00
parent 3aa90df14f
commit d69d6c69f6

View file

@ -155,7 +155,8 @@ function develversion_check() {
if [[ -d "$package_rootdir/$pkg" ]]; then if [[ -d "$package_rootdir/$pkg" ]]; then
# Find the current pkgver() of the package in the AUR # Find the current pkgver() of the package in the AUR
package_version=$(pacaur -i "$pkg" \ package_version=$(pacaur -i "$pkg" \
| egrep "^Version" \ | sed -r 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g' \
| egrep '^Version' \
| sed 's|^[^:]*: ||;s|-[0-9]*$||') | sed 's|^[^:]*: ||;s|-[0-9]*$||')
pkgbuild_file="$package_rootdir/$pkg/PKGBUILD" pkgbuild_file="$package_rootdir/$pkg/PKGBUILD"