From 79e823df52b4bdedee993dac36abe0bb475e3783 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 25 May 2023 17:31:07 +0200 Subject: [PATCH] testing --- .githooks/post-checkout | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.githooks/post-checkout b/.githooks/post-checkout index 5ee5dca..3334c35 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -34,6 +34,9 @@ if [ -f $CHECKOUT_HISTORY_FILE ]; then if grep -qE '^[[:space:]]+$' <<< "${opkg_c}"; then continue fi + if [ ${#opkg_c} -eq 0 ]; then + continue + fi echo "DDD=${opkg_c}DDD" # check if line is not starting with '#' if ! grep -qE "^\s*[#]+.*$" <<< "$opkg_c"; then