Refactor "{type => _omb_util_command_exists}"

This commit is contained in:
Koichi Murase
2022-08-23 17:42:39 +09:00
parent de66a70f91
commit 2202aeeb04
5 changed files with 5 additions and 5 deletions

View File

@@ -124,7 +124,7 @@ zipf () { zip -r "$1".zip "$1" ; } # zipf: To create a ZIP arc
# mkiso: creates iso from current dir in the parent dir (unless defined)
# ---------------------------------------------------------
mkiso () {
if type "mkisofs" > /dev/null; then
if _omb_util_command_exists mkisofs; then
if [ -z ${1+x} ]; then
local isoname=${PWD##*/}
else