Remove pipefile.
This commit is contained in:
parent
a9b26221ec
commit
232922bc42
1 changed files with 1 additions and 11 deletions
12
src/out
12
src/out
|
@ -14,17 +14,7 @@ echo "tar x script:" >&2
|
||||||
echo "$script" >&2
|
echo "$script" >&2
|
||||||
(
|
(
|
||||||
cd "$1"
|
cd "$1"
|
||||||
pipe="$(tmpname)"
|
( IFS=$'\n' tar c $FILES ) | ssh -F "$CONFIG_PATH" "$HOSTNAME" "sh -c '$script'"
|
||||||
mkfifo "$pipe"
|
|
||||||
(
|
|
||||||
# shellcheck disable=SC2086
|
|
||||||
IFS=$'\n' tar c $FILES > "$pipe"
|
|
||||||
) &
|
|
||||||
background_1=$!
|
|
||||||
ssh -F "$CONFIG_PATH" "$HOSTNAME" "sh -c '$script'" < "$pipe" &
|
|
||||||
background_2=$!
|
|
||||||
rm "$pipe"
|
|
||||||
wait $background_1 $background_2
|
|
||||||
)
|
)
|
||||||
computed_version="$(compute_version "$(fetch_file_meta)")"
|
computed_version="$(compute_version "$(fetch_file_meta)")"
|
||||||
jq -r tostring << EOF
|
jq -r tostring << EOF
|
||||||
|
|
Loading…
Reference in a new issue