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