From 7d432e5f091f35add5f5a2b3514342515f2a7553 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:50:39 -0800 Subject: [PATCH] ShellCheck in 2014/maffiodo1 scripts Disable the useless cat warning. There is no such thing as a useless cat. --- 2014/maffiodo1/giana.sh | 2 ++ 2014/maffiodo1/mario.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/2014/maffiodo1/giana.sh b/2014/maffiodo1/giana.sh index 845b19696..9fa2961af 100755 --- a/2014/maffiodo1/giana.sh +++ b/2014/maffiodo1/giana.sh @@ -23,4 +23,6 @@ if [[ -z "$COLS" ]]; then COLS="640" fi +# ^---------^ SC2002 (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. +# shellcheck disable=SC2002 cat giana.level | ./prog "$COLS" "$ROWS" 1000 300 192 168 giana.rgba giana8.wav 5459393 diff --git a/2014/maffiodo1/mario.sh b/2014/maffiodo1/mario.sh index d73de499d..28e462c1d 100755 --- a/2014/maffiodo1/mario.sh +++ b/2014/maffiodo1/mario.sh @@ -23,4 +23,6 @@ if [[ -z "$COLS" ]]; then COLS="640" fi +# ^---------^ SC2002 (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. +# shellcheck disable=SC2002 cat mario.level | ./prog "$COLS" "$ROWS" 800 300 128 144 mario.rgba mario8.wav 10343679 && telnet telehack.com 23