Fix compatibility for macOS

This commit is contained in:
Pierre Pronchery 2019-05-17 16:42:54 +02:00
parent 9e32929c97
commit 29e81457cb

View File

@ -64,14 +64,14 @@ _platform()
#convert comments and ignore empty lines
case "$name" in
"#"*)
echo -n "/* "
[ -n "${name#?}" ] && echo -n "${name#?}"
[ -n "$type" ] && echo -n " $type"
[ -n "$at" ] && echo -n " $at"
[ -n "$busname" ] && echo -n " $busname"
[ -n "$bus" ] && echo -n " $bus"
[ -n "$args" ] && echo -n " $args"
echo " */"
l="/* "
[ -n "${name#?}" ] && l="$l${name#?}"
[ -n "$type" ] && l="$l $type"
[ -n "$at" ] && l="$l $at"
[ -n "$busname" ] && l="$l $busname"
[ -n "$bus" ] && l="$l $bus"
[ -n "$args" ] && l="$l $args"
echo "$l */"
continue
;;
"")