From bde5c6de364791eb20427b2634835ff61e50a6e0 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 23 Sep 2020 18:52:48 +0100 Subject: [PATCH] chore: update bin/rubocop-daemon-wrapper --- bin/rubocop-daemon-wrapper | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/rubocop-daemon-wrapper b/bin/rubocop-daemon-wrapper index ec93aa9..5c4012d 100755 --- a/bin/rubocop-daemon-wrapper +++ b/bin/rubocop-daemon-wrapper @@ -4,7 +4,7 @@ set -e COMMAND_PREFIX="" -if [ -n "$RUBOCOP_DAEMON_USE_BUNDLER" ] || [ -n "$BUNDLER_VERSION" ]; then +if [ -n "$RUBOCOP_DAEMON_USE_BUNDLER" ]; then COMMAND_PREFIX="bundle exec" fi @@ -91,10 +91,7 @@ mkdir -p "$LOCK_PATH" for ARG in $@; do if [ -z "$STDIN_CONTENT" ] && [ "$ARG" == "--stdin" ] || [ "$ARG" == "-s" ]; then # Preserve final new lines when ingesting from STDIN - STDIN_CONTENT="$( - cat - printf x - )" + STDIN_CONTENT="$(cat; printf x)" STDIN_CONTENT=${STDIN_CONTENT%x} fi done