Skip to content

Commit

Permalink
Ingore shebang at top of file (#11927)
Browse files Browse the repository at this point in the history
Signed-off-by: Chojan Shang <psiace@apache.org>
  • Loading branch information
PsiACE authored Aug 11, 2024
1 parent 7d6cd13 commit fd237f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datafusion-cli/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ pub async fn exec_from_lines(

for line in reader.lines() {
match line {
Ok(line) if line.starts_with("#!") => {
continue;
}
Ok(line) if line.starts_with("--") => {
continue;
}
Expand Down

0 comments on commit fd237f8

Please sign in to comment.