diff --git a/scripts/check-kernel-commit b/scripts/check-kernel-commit index 9274a50..b2115ba 100755 --- a/scripts/check-kernel-commit +++ b/scripts/check-kernel-commit @@ -133,19 +133,6 @@ check_parents() echo " (not even in $last_branch)" } -print_branch() -{ - branch="$1" - echo -n "$branch" - - len=`echo $branch| wc -c` - spaces=$((24 - $len)) - while [ $spaces -gt 0 ] ; do - echo -n " " - spaces=$(($spaces - 1)) - done -} - grep -w build "$branches" | grep -v -E "^(master|vanilla|linux-next|cve)" | \ while read line ; do line=${line%%\#*} @@ -166,7 +153,7 @@ while read line ; do parents="$parents ${tmp//*merge:/}" done - print_branch "$branch" + printf "%-23s" "$branch" check_branch "$branch" case $? in