Remove reference to using sudo for make files (#29674)

"For make file executable you should call this command under sudo chmod +x "filename"." Doesn't belong in this overview of bash scripts.
This commit is contained in:
Jeremy Nofs
2019-02-14 15:45:43 -05:00
committed by Randell Dawson
parent c900cec85e
commit 9d39c5c384

View File

@ -46,8 +46,8 @@ That is because it is a convention to let the interactive shell know what kind o
Though it is only executed if you run your script as an executable. For example, when you type `./scriptname.extension`, it will look at the top line to find out the interpreter, whereas, running the script as `bash scriptname.sh`, the first line is ignored. Though it is only executed if you run your script as an executable. For example, when you type `./scriptname.extension`, it will look at the top line to find out the interpreter, whereas, running the script as `bash scriptname.sh`, the first line is ignored.
For example, you can use this method to run the script as the root user: Then you could run the script like so:
To make the file executable call this command under sudo chmod +x "filename".
``` ```
zach@marigold:~$ ./myBashScript.sh zach@marigold:~$ ./myBashScript.sh
Hello world! Hello world!