Skip to content

Commit

Permalink
use env var for timed file
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Jun 28, 2024
1 parent 664d9d1 commit 298ef9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions try-timed
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export TRY_COMMAND
# Run a command (in `$@`) in an overlay (in `$SANDBOX_DIR`)
################################################################################

echo "" > timelog
exec 3> timelog
timelog=${TIMELOG:-timelog}
echo "" > "$timelog"
exec 3> "$timelog"

try() {
date +"%s.%N Start of try()" >&3
Expand Down

0 comments on commit 298ef9c

Please sign in to comment.