Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix: Correct absolute path for shebang in shell script #986

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

aminelch
Copy link

@aminelch aminelch commented Jan 2, 2025

Ensure the shebang uses the absolute path to the interpreter.
The interpreter should always be specified by absolute path to ensure that the script can be executed from any directory. When it's not, it's generally a typo.

Problematic code:

#!bin/sh
echo "Hello World"

Correct code:

#!/bin/sh
echo "Hello World"

See https://github.com/koalaman/shellcheck/wiki/SC2239

Copy link

netlify bot commented Jan 2, 2025

Deploy Preview for hugo-congo ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit caf37f0
🔍 Latest deploy log https://app.netlify.com/sites/hugo-congo/deploys/677702bf96dc7b000888b825
😎 Deploy Preview https://deploy-preview-986--hugo-congo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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.

1 participant