diff --git a/checkversion b/checkversion index 406575b..e44252b 100755 --- a/checkversion +++ b/checkversion @@ -155,7 +155,7 @@ function develversion_check() { # Find the current pkgver() of the package in the AUR package_version=$(pacaur -i "$pkg" \ | sed -r 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g' \ - | grep -E '^Version' \ + | grep -oE '^Version[^:]*: *[^ ]*' \ | sed 's|^[^:]*: ||;s|-[0-9]*$||') pkgbuild_file="$package_rootdir/$pkg/PKGBUILD" @@ -363,8 +363,7 @@ done } # Initialize the temp folder -[[ -d "$temp_directory" ]] \ - && rm -rf "$temp_directory" +[[ -d "$temp_directory" ]] && rm -rf "$temp_directory" install -d "$temp_directory" archversion_check