projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git]
/
dotenv-linter
/
install.sh
diff --git
a/dotenv-linter/install.sh
b/dotenv-linter/install.sh
index 9bff300f321c015e4d5e99d162315a1385022d45..f78822bb117b9503a7ad4697e316e702c45e4b5a 100644
(file)
--- a/
dotenv-linter/install.sh
+++ b/
dotenv-linter/install.sh
@@
-1,8
+1,8
@@
#!/bin/bash
#!/bin/bash
+set -e
+set -u
-{
- set -e
- set -u
+function __init_dotenv_linter() {
#########################
# Install dotenv-linter #
#########################
# Install dotenv-linter #
@@
-33,7
+33,9
@@
# dotenv-linter 0.99.9 (rev abcdef0123)
# This trims it down to just the version number:
# 0.99.9
# dotenv-linter 0.99.9 (rev abcdef0123)
# This trims it down to just the version number:
# 0.99.9
- echo $(dotenv-linter --version 2>/dev/null | head -n 1 | cut -d ' ' -f 2)
+ echo $(dotenv-linter --version 2>
/dev/null | head -n 1 | cut -d ' ' -f 2)
}
}
}
}
+
+__init_dotenv_linter