From 612ebf5ae982623987de56be6c68e4dbcca0fb56 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Fri, 30 Oct 2015 05:57:24 +0100 Subject: [PATCH] safely hide the python code part from shell parsers This works around a syntax warning emitted by the continuous integration tool. This commit encloses the python part of the hybrid shell / python script within a "here" document. --- plugins/network/olsrd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/network/olsrd b/plugins/network/olsrd index 23bdf02a..5fcfedba 100755 --- a/plugins/network/olsrd +++ b/plugins/network/olsrd @@ -61,6 +61,10 @@ else python "$0" "$@" fi exit $? + +# For shell: ignore everything starting from here until the last line of this file. +# This is necessary for syntax checkers that try to complain about invalid shell syntax below. +true <