mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
Refactor "{type => _omb_util_command_exists}"
This commit is contained in:
@@ -403,7 +403,7 @@ _omb_util_alias() {
|
||||
|
||||
function _omb_util_mktemp {
|
||||
local template=tmp.oh-my-bash.XXXXXXXXXX
|
||||
if type -t mktemp &>/dev/null; then
|
||||
if _omb_util_command_exists mktemp; then
|
||||
mktemp -t "$template"
|
||||
else
|
||||
m4 -D template="${TMPDIR:-/tmp}/$template" <<< 'mkstemp(template)'
|
||||
|
Reference in New Issue
Block a user