Skip to content

Commit 9951c65

Browse files
authored
moving shebang at the top of the file
Shebang changes how Unix-like OS run scripts, ensuring the script is run with the specified interpreter. In this case as the line was not the first in the file, users without bash as their default shell would experience issues running the script. Fixes #9281 More details on shebang usage here https://en.wikipedia.org/wiki/Shebang_(Unix)
1 parent a144887 commit 9951c65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build/linux/dist/arduino-linux-setup.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
# arduino-linux-setup.sh : A simple Arduino setup script for Linux systems
23
# Copyright (C) 2015 Arduino Srl
34
#
@@ -61,8 +62,6 @@
6162
# + now the script checks for SUDO permissions
6263
#
6364

64-
#!/bin/bash
65-
6665
# if [[ $EUID != 0 ]] ; then
6766
# echo This must be run as root!
6867
# exit 1

0 commit comments

Comments
 (0)