Fix compatibility for macOS
This commit is contained in:
parent
9e32929c97
commit
29e81457cb
|
@ -64,14 +64,14 @@ _platform()
|
||||||
#convert comments and ignore empty lines
|
#convert comments and ignore empty lines
|
||||||
case "$name" in
|
case "$name" in
|
||||||
"#"*)
|
"#"*)
|
||||||
echo -n "/* "
|
l="/* "
|
||||||
[ -n "${name#?}" ] && echo -n "${name#?}"
|
[ -n "${name#?}" ] && l="$l${name#?}"
|
||||||
[ -n "$type" ] && echo -n " $type"
|
[ -n "$type" ] && l="$l $type"
|
||||||
[ -n "$at" ] && echo -n " $at"
|
[ -n "$at" ] && l="$l $at"
|
||||||
[ -n "$busname" ] && echo -n " $busname"
|
[ -n "$busname" ] && l="$l $busname"
|
||||||
[ -n "$bus" ] && echo -n " $bus"
|
[ -n "$bus" ] && l="$l $bus"
|
||||||
[ -n "$args" ] && echo -n " $args"
|
[ -n "$args" ] && l="$l $args"
|
||||||
echo " */"
|
echo "$l */"
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
"")
|
"")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user