Révision 14ff36a3
hide the python code part from shell parsers
This works around a syntax warning of the continuous integration system.
The cause of this warning could have never triggered anyway.
This commit encloses the whole python code safely in a "here" document.
| plugins/network/ath9k_ | ||
|---|---|---|
| 53 | 53 |
python3 "$0" "$@" |
| 54 | 54 |
fi |
| 55 | 55 |
exit $? |
| 56 |
|
|
| 57 |
# For shell: ignore everything starting from here until the last line of this file. |
|
| 58 |
# This is necessary for syntax checkers that try to complain about invalid shell syntax below. |
|
| 59 |
true <<EOF |
|
| 56 | 60 |
""" |
| 57 | 61 |
|
| 58 | 62 |
|
| ... | ... | |
| 450 | 454 |
# output values |
| 451 | 455 |
for item in ath9k.get_values(get_scope()): |
| 452 | 456 |
print(item) |
| 457 |
|
|
| 458 |
# final marker for shell / python hybrid script (see "Interpreter Selection") |
|
| 459 |
EOF = True |
|
| 460 |
EOF |
|
Formats disponibles : Unified diff