This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efm2.

View the commit online.

commit d1aa1a6635c99e1bb1c8076af8c8ae7613f885ef
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Mon Oct 23 21:59:17 2023 +0100

    bash backend - handdle nil lines better
---
 src/backends/table/open | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/backends/table/open b/src/backends/table/open
index da21a53..135ce34 100755
--- a/src/backends/table/open
+++ b/src/backends/table/open
@@ -55,11 +55,14 @@ function e_val_escape() {
 function e_line_read() {
   local -n V=${1}
   local PIFS="$IFS"
+  local C
   IFS=" "
   read -a V
   IFS="$PIFS"
 # check command line starts with CMD
-  if [ ${V[0]} != "CMD" ]; then return 1; fi
+  C=${V[0]}
+  if test -z "$C"; then return 1; fi
+  if [ ${C} != "CMD" ]; then return 1; fi
   return 0
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to