From cf878a2f39edc78b9b5d470766e543f973059953 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sun, 10 Mar 2024 23:19:51 -0700 Subject: [PATCH] fix shellcheck errors in 2018/burton2/mkkeywords.sh --- 2018/burton2/mkkeywords.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2018/burton2/mkkeywords.sh b/2018/burton2/mkkeywords.sh index 0aeaa26c9..90078b568 100755 --- a/2018/burton2/mkkeywords.sh +++ b/2018/burton2/mkkeywords.sh @@ -1,3 +1,3 @@ -#!/bin/sh +#!/usr/bin/env bash awk '/^[^$]/{l=length;m=m>l?m:l;a[l]=a[l]$1} - END{printf"\"";for(i=1;i<=m;++i)printf" "a[i];print"\""}' $* + END{printf"\"";for(i=1;i<=m;++i)printf" "a[i];print"\""}' "$@"