Skip to content

Commit

Permalink
moving shebang at the top of the file
Browse files Browse the repository at this point in the history
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 arduino#9281
More details on shebang usage here https://en.wikipedia.org/wiki/Shebang_(Unix)
  • Loading branch information
endorama authored Oct 7, 2019
1 parent a144887 commit 9951c65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/linux/dist/arduino-linux-setup.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
# arduino-linux-setup.sh : A simple Arduino setup script for Linux systems
# Copyright (C) 2015 Arduino Srl
#
Expand Down Expand Up @@ -61,8 +62,6 @@
# + now the script checks for SUDO permissions
#

#!/bin/bash

# if [[ $EUID != 0 ]] ; then
# echo This must be run as root!
# exit 1
Expand Down

0 comments on commit 9951c65

Please sign in to comment.