asteris-llc/converge

View on GitHub
gen/systemd/generate-dbus-wrappers

Summary

Maintainability
Test Coverage

tempfile is deprecated. Use mktemp instead.
Open

TMPFILE=$(tempfile -s '.go')

tempfile is deprecated. Use mktemp instead.

Problematic code:

tmp=$(tempfile)

Correct code:

tmp=$(mktemp)

Rationale:

tempfile is a Debian specific utility for creating temporary files. Its man page notes:

tempfile is deprecated; you should use mktemp(1) instead.

Neither tempfile nor mktemp are POSIX, but tempfile is Debian specific while mktemp works on GNU, OSX, BusyBox, *BSD and Solaris.

Exceptions:

ShellCheck will not recognize when a function overrides this name.

Notice

Original content from the ShellCheck https://github.com/koalaman/shellcheck/wiki.

There are no issues that match your filters.

Category
Status