Commit f4b883f4 authored by Vincent Pelletier's avatar Vincent Pelletier

shell/caucase.sh: Silence a shellcheck warning.

In shell/caucase.sh line 1134:
    trap "kill \"$caucased_pid\"; wait; rm -rf \"$tmp_dir\"" EXIT
                 ^-----------^ SC2064: Use single quotes, otherwise this expands now rather than when signalled.
                                                 ^------^ SC2064: Use single quotes, otherwise this expands now rather than when signalled.

These variables are local, so immediate expantion is expected.
parent e9de51f0
...@@ -1129,6 +1129,7 @@ EOF ...@@ -1129,6 +1129,7 @@ EOF
caucased_dir="$tmp_dir/caucased" caucased_dir="$tmp_dir/caucased"
caucased --db "$caucased_dir/db.sqlite" --netloc "$netloc" & caucased --db "$caucased_dir/db.sqlite" --netloc "$netloc" &
caucased_pid="$!" caucased_pid="$!"
# shellcheck disable=SC2064
trap "kill \"$caucased_pid\"; wait; rm -rf \"$tmp_dir\"" EXIT trap "kill \"$caucased_pid\"; wait; rm -rf \"$tmp_dir\"" EXIT
if cd "$tmp_dir"; then if cd "$tmp_dir"; then
: :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment