Skip to content

Commit

Permalink
Force mktemp to honor $TMPDIR in merge-squashfs script
Browse files Browse the repository at this point in the history
  • Loading branch information
schrockwell authored and fhunleth committed Feb 7, 2024
1 parent dba9000 commit e6135ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/merge-squashfs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ if [[ ! -d $overlay_dir ]]; then
exit 1
fi

workdir=$(mktemp -d 2>/dev/null || mktemp -d -t 'merge-squashfs-tmp')
# force mktemp to honor $TMPDIR
workdir=$(mktemp -d -p '' 2>/dev/null || mktemp -d -p '' -t 'merge-squashfs-tmp')
pushd "$workdir" >/dev/null

unsquash_to_pseudofile "$input_squashfs" >pseudofile.in
Expand Down

0 comments on commit e6135ac

Please sign in to comment.