Skip to content

Commit

Permalink
Adjusted cf-support temp dir function to work on more UNIX platforms
Browse files Browse the repository at this point in the history
head -c 8 doesn't work on hpux 11.23 that we test on currently

dd count=1 bs=8 should work on all UNIX systems

Ticket: ENT-9786
Changelog: title
  • Loading branch information
craigcomstock committed Dec 5, 2024
1 parent 74d100b commit 3f59605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/cf-support
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ make_temp_dir()
else
# shellcheck disable=SC2021
# ^^ legacy/POSIX requires square brackets
_tmp="/tmp/`tr -dc "[A-Z][a-z][0-9]" </dev/urandom | head -c 8`"
_tmp="/tmp/`tr -dc "[A-Z][a-z][0-9]" </dev/urandom | dd count=1 bs=8 2>/dev/null`"
mkdir "$_tmp"
echo "$_tmp"
fi
Expand Down

0 comments on commit 3f59605

Please sign in to comment.