diff options
author | Ben Sima <ben@bsima.me> | 2024-04-01 15:19:49 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2024-04-01 15:19:49 -0400 |
commit | 2d40ec3a03f4684f6fabba7dee2981c992a13785 (patch) | |
tree | 1edc1522fd5eb8e6d20b1b4dbde89f3e49ad9e51 /Biz/Namespace.hs | |
parent | db373a8c727cad91d375b40a6c70b11ed73bdafb (diff) |
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.
Diffstat (limited to 'Biz/Namespace.hs')
-rw-r--r-- | Biz/Namespace.hs | 5 |
1 files changed, 1 insertions, 4 deletions
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 |