position can not be empty

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2018-06-01 15:27:40 +02:00
parent fb26894cbd
commit 4516ee0baa

View file

@ -22,6 +22,9 @@ if [ -f "$__object/parameter/before" ]; then
position="before"
elif [ -f "$__object/parameter/after" ]; then
position="after"
else
# By default we append to the end of the file.
position="end"
fi
if [ -f "$__object/parameter/regex" ]; then