chore: fix spacing output of inline script
fix: broken code after refactor