aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-09-21 19:17:37 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-09-21 19:17:37 +0300
commit4ac03e001578b173d6c939a38e945272e6fd2ca7 (patch)
treeac754ad042d061874430a7d07cc78e1399989069
parentfix .gitignore (diff)
downloadlinux-home-4ac03e001578b173d6c939a38e945272e6fd2ca7.tar.gz
linux-home-4ac03e001578b173d6c939a38e945272e6fd2ca7.zip
code style
Diffstat (limited to '')
-rw-r--r--.bash_utils/text.sh4
1 files changed, 3 insertions, 1 deletions
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" "$@"
)