Lanisicke

@Lanisicke@lemmy.world
0 Post – 2 Comments
Joined 1 years ago

Judging by the first line, this script is a set of Bash commands.

If this line is there, when the script is executed it will run as a Bash script.

This line is required for it to work as a Bash script; if it isn't there, it will execute using the kernel, and it won't work because it's not a binary program.

If you want it all in one line, just copy and paste it into a terminal that already runs Bash, and exclude the first line. But why do you want it in one line in the first place? Multiline scripts have no performance drop, and they are more readable.