From 2d40ec3a03f4684f6fabba7dee2981c992a13785 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 1 Apr 2024 15:19:49 -0400 Subject: Rename .bash files to .sh I was already using .sh to refer to shell scripts. When I added .bash, I didn't realize that the linter was set to act on .sh files and not .bash files, so all of these bash scripts escaped the linter. This commit renames them to .sh, removes the .bash extension support from Biz.Namespace, and fixes all the reported shellcheck errors. --- Biz/Namespace.hs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Biz/Namespace.hs') diff --git a/Biz/Namespace.hs b/Biz/Namespace.hs index bd283a6..8f5058e 100644 --- a/Biz/Namespace.hs +++ b/Biz/Namespace.hs @@ -31,8 +31,7 @@ import qualified Data.Text as Text import qualified Text.Regex.Applicative as Regex data Ext - = Bash - | C + = C | Css | Hs | Html @@ -68,7 +67,6 @@ toPath (Namespace parts ext) = toExt :: Ext -> String toExt = ("." <>) <. \case - Bash -> "bash" C -> "c" Css -> "css" Hs -> "hs" @@ -145,7 +143,6 @@ reExt = <|> Rs <$ Regex.string "rs" <|> Scm <$ Regex.string "scm" <|> Sh <$ Regex.string "sh" - <|> Bash <$ Regex.string "bash" <|> Toml <$ Regex.string "toml" -- | The cab dir is for temporary files and build outputs, not for source -- cgit v1.2.3