Skip to content

Commit cce87f4

Browse files
authored
Update exec.sh
1 parent 2063eda commit cce87f4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/auto/exec.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ set -e
22
. /usr/bin/opentelemetry_shell.sh
33
if [ "$OPEN_FD" = TRUE ]; then exec 3>&2; fi
44
if [ "$SOURCE" = TRUE ]; then
5-
echo 'exec echo' "$@" > source_exec.sh
6-
. ./source_exec.sh
5+
file="$(\mktemp)"
6+
echo 'exec echo' "$@" > "$file"
7+
. "$file"
78
else
89
exec echo "$@"
910
fi

0 commit comments

Comments
 (0)