diff --git a/scripts/spec-gen.sh b/scripts/spec-gen.sh index 12720a3e..38a78136 100755 --- a/scripts/spec-gen.sh +++ b/scripts/spec-gen.sh @@ -16,7 +16,7 @@ usage(){ get_scriptlet(){ scriptlet="$1" 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(){