Fix bug that caused the installed package to be included in the develversion version string

This commit is contained in:
Kevin MacMartin 2020-01-30 14:09:06 -05:00
parent a3e96bcc58
commit 7ffc496ad4

View file

@ -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