diff options
| author | Xiao Pan <gky44px1999@gmail.com> | 2024-03-04 15:07:10 -0800 | 
|---|---|---|
| committer | Xiao Pan <gky44px1999@gmail.com> | 2024-03-04 15:07:10 -0800 | 
| commit | e8c094488a3666e849201e164f0b3e05c9e59a8e (patch) | |
| tree | 03e05f80c682996e7d6df392a2b095d27795a81d | |
| parent | bd5b3c19ab3f6500a8068c63d2816785749c9204 (diff) | |
fix: workaround paru color output
| -rwxr-xr-x | sh/upd | 5 | 
1 files changed, 2 insertions, 3 deletions
| @@ -152,11 +152,10 @@ pac () {  	# about `/^(\(|:|=)/ {f=0}`:  	# - consider $aurout start with `^:: Looking for devel upgrades...` , rebuild-detector.hook maybe the last hook to run for $pacout  	# - consider ^(4/5), the hook is not the last -	# - consider paru `==> Making package: ...`, the hook maybe followed by this -	# - here is also a more complex one: `/^\([0-9]+\/[0-9]+\) |^:: |^==> [A-Z]/ {f=0}` +	# - consider paru `==> Making package: ...`, the hook maybe followed by this. Note: paru somehow still gives colro output even if I use --color never, so I can't check with ^=, so I choose to check with ==>  	checkrebuild_pacs="$(echo "$pacout$aurout" | awk '  	/^\([0-9]+\/[0-9]+\) Checking which packages need to be rebuilt$/ {f=1; next} -	/^(\(|:|=)/ {f=0} +	/^(\(|:)|==>/ {f=0}  	f {  		if($2!~"zoom|miniconda3")  			printf("%s ",$2) | 
