From 83f4e1c3e654353d886e753eb179811521f932ac Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Sat, 30 Sep 2023 17:29:05 -0600 Subject: [PATCH] Make shfmt happier --- would-reformat.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/would-reformat.sh b/would-reformat.sh index aeafa40..05d923e 100755 --- a/would-reformat.sh +++ b/would-reformat.sh @@ -20,16 +20,16 @@ file_type=$(sniff_file_type "$file") export WOULD_REFORMAT=would_reformat -if [[ $file_type = "javascript" || \ - $file_type = "vue" || \ - $file_type = "typescript" || \ - $file_type = "css" || \ - $file_type = "php" || \ - $file_type = "html" || \ - $file_type = "jsx" || \ - $file_type = "tsx" || \ - $file_type == "css" || \ - $file_type == "scss" || \ +if [[ $file_type = "javascript" || + $file_type = "vue" || + $file_type = "typescript" || + $file_type = "css" || + $file_type = "php" || + $file_type = "html" || + $file_type = "js" || + $file_type = "ts" || + $file_type == "css" || + $file_type == "scss" || $file_type = "sh" ]]; then out=$("$(wfroot "$DIR")"/./prettier.sh "$file" 2>&1 > /dev/null) out=$("$WF_ROOT"/./prettier.sh "$file" 2>&1 >/dev/null)