Skip to content

Commit fd237f8

Browse files
authored
Ingore shebang at top of file (#11927)
Signed-off-by: Chojan Shang <psiace@apache.org>
1 parent 7d6cd13 commit fd237f8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

datafusion-cli/src/exec.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ pub async fn exec_from_lines(
7070

7171
for line in reader.lines() {
7272
match line {
73+
Ok(line) if line.starts_with("#!") => {
74+
continue;
75+
}
7376
Ok(line) if line.starts_with("--") => {
7477
continue;
7578
}

0 commit comments

Comments
 (0)