Skip to content

Files

Latest commit

 

History

History
25 lines (15 loc) · 483 Bytes

SC2246.md

File metadata and controls

25 lines (15 loc) · 483 Bytes

Pattern: Shebang indicating a directory

Issue: -

Description

The shebang specifies which file to use as an interpreter, but probably due to some kind of typo, your script's interpreter ends in a /, indicating a directory.

Ensure it points to a valid executable filename.

Example of incorrect code:

#!/bin/sh/

Example of correct code:

#!/bin/sh

Further Reading