fix: remove sudo from RPM spec

This commit is contained in:
Ben Grande 2024-03-14 16:22:41 +01:00
parent 8a0c004ed8
commit ee7bfd5089

View File

@ -16,7 +16,7 @@ usage(){
get_scriptlet(){ get_scriptlet(){
scriptlet="$1" scriptlet="$1"
sed -n "/^<\!-- pkg:begin:${scriptlet} -->$/,/^<\!-- pkg:end:${scriptlet} -->$/p" "${readme}" \ sed -n "/^<\!-- pkg:begin:${scriptlet} -->$/,/^<\!-- pkg:end:${scriptlet} -->$/p" "${readme}" \
| grep -v -e '^```\S*$' -e "^<\!-- " || echo "true" | grep -v -e '^```\S*$' -e "^<\!-- " | sed "s/^sudo //" || echo "true"
} }
get_spec(){ get_spec(){