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 #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
;; ;;
"") "")