From 4ac03e001578b173d6c939a38e945272e6fd2ca7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 21 Sep 2016 19:17:37 +0300 Subject: code style --- .bash_utils/text.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bash_utils/text.sh b/.bash_utils/text.sh index cb34073..71ee38c 100644 --- a/.bash_utils/text.sh +++ b/.bash_utils/text.sh @@ -35,7 +35,9 @@ replace_word() ( fi local old="$1" + shift local new="$2" + shift - shift && shift && sed --binary --in-place "s/\\b$old\\b/$new/g" "$@" + sed --binary --in-place "s/\\b$old\\b/$new/g" "$@" ) -- cgit v1.2.3