aboutsummaryrefslogtreecommitdiff
path: root/basic.bash
diff options
context:
space:
mode:
Diffstat (limited to 'basic.bash')
-rw-r--r--basic.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/basic.bash b/basic.bash
index 643c39d..363df0b 100644
--- a/basic.bash
+++ b/basic.bash
@@ -36,8 +36,8 @@ script_dir="${script_path%/*}"
function init
{
tmp_d="$(mktemp -d)"
- tmp="$tmp_d/a"
- tmp_="$tmp_d/b"
+ tmp="${tmp_d}/a"
+ tmp_="${tmp_d}/b"
}
# $1: file to treat as input: filename
@@ -81,7 +81,7 @@ function replace_line
sed -Ei "
/${1}/ {
- r $tmp_
+ r ${tmp_}
d
}
" "$tmp"