Skip to content

Enforce shebang format on command files#107

Merged
stasadev merged 1 commit into
ddev:mainfrom
codebymikey:patch-1
Jun 4, 2026
Merged

Enforce shebang format on command files#107
stasadev merged 1 commit into
ddev:mainfrom
codebymikey:patch-1

Conversation

@codebymikey

Copy link
Copy Markdown
Contributor

The Issue

Shebangs aren't properly enforced for command files.

How This PR Solves The Issue

Checks if the first line of command is a shebang.

Manual Testing Instructions

Inside a DDEV addon like https://github.com/FreelyGive/ddev-claude-code or equivalent:

printf '#ddev-generated\n#!/bin/bash' > commands/web/test
curl -fsSL https://raw.githubusercontent.com/codebymikey/ddev-addon-template/refs/heads/patch-1/.github/scripts/update-checker.sh | bash

Automated Testing Overview

N/A

Release/Deployment Notes

N/A

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@stasadev stasadev merged commit bd2d894 into ddev:main Jun 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Checker should detect if the command file does not start with a shebang

2 participants