Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils.sh: Remove the tmp output file #3

Merged
merged 3 commits into from
Aug 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
utils.sh: Remove deprecated mktemp -t
We don't really need a template if we will just delete a few lines
below. Let's just make it simpler, this creates a file in /tmp, this is
enough.

Signed-off-by: Rodrigo Campos <[email protected]>
  • Loading branch information
rata committed Jul 31, 2024
commit d675def2e0f0dfa60dce6ed19a89adc41c52945e
2 changes: 1 addition & 1 deletion util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function run() {
if [ -n "$DEMO_RUN_FAST" ]; then
sleep 0.5
fi
OFILE="$(mktemp -t $(basename $0).XXXXXX)"
OFILE="$(mktemp)"
script -eq -c "$1" -f "$OFILE"
r=$?
read -d '' -t "${timeout}" -n 10000 # clear stdin
Expand Down