Timeline for else if in bash script is giving error
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 28, 2013 at 6:14 | comment | added | Gordon Davisson |
Some style corrections besides the actual error: don't use ; at the end of lines in shell scripts, and use elif instead of else if (and also remove the extra fi s). Also, is there any reason you're running your sudo commands in subshells (with parentheses)?
|
|
Feb 28, 2013 at 5:23 | vote | accept | user1597811 | ||
S Feb 28, 2013 at 5:17 | history | suggested | Kaunteya | CC BY-SA 3.0 |
Improper construction
|
Feb 28, 2013 at 5:14 | review | Suggested edits | |||
S Feb 28, 2013 at 5:17 | |||||
Feb 28, 2013 at 5:13 | answer | added | Kaunteya | timeline score: 7 | |
Feb 28, 2013 at 5:11 | comment | added | hek2mgl | try to correct the indent. its likely that you'll find the error while doing this. | |
Feb 28, 2013 at 5:08 | history | edited | user1597811 | CC BY-SA 3.0 |
deleted 8 characters in body
|
Feb 28, 2013 at 5:02 | history | asked | user1597811 | CC BY-SA 3.0 |