Skip to content

mktemp incompatibility #49

@surkamp

Description

@surkamp

Describe the bug

Slackware version of mktemp has no support to extra values before the XXXXXX tag.

Fix suggestion

Remove the .tempdir part from mktemp arguments in temp_directory declaration.

To Reproduce

  1. Run the script on a Slackware 14.2 box
  2. See error

Teminal output

# ./woeusb-5.1.0.bash 
mktemp: cannot make temp dir /tmp/WoeUSB.XXXXXX.tempdir: Invalid argument
The command "temp_directory=$(
    mktemp         -d         -t         WoeUSB.XXXXXX.tempdir
)" failed with exit status "1", program is prematurely aborted
$ mktemp -V
mktemp version debianutils-2.7

Environment

  • OS: Slackware 14.2
  • Bash: GNU bash, version 4.3.48(1)-release (x86_64-slackware-linux-gnu)
  • WoeUSB: 5.1.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomersinvestigatingThe project developers are looking into this case

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions