Commit Graph

457 Commits

Author SHA1 Message Date
Kevin van Zonneveld
4085bc461e -v operator was added in bash 4.2 while we target bash 3 2019-10-29 08:34:52 +01:00
Kevin van Zonneveld
8e548e766e Fix Cabal warnings on Travis
Warning: The install command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-install

command or the legacy v1-install alias as new-style projects will become the

default in the next version of cabal-install. Please file a bug if you cannot

replicate a working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

cabal: There is no package named 'shellcheck'. However, the following package

name exists: 'ShellCheck'.
2019-10-29 08:34:37 +01:00
Kevin van Zonneveld
d908e8b362 Release 2.4.0 2019-10-08 16:07:32 +02:00
Kevin van Zonneveld
9250d036dc Update CHANGELOG.md 2019-10-08 16:07:27 +02:00
gmeral
ea57d157c7 #111 more contrasted colors for alert and emergency (#112)
* Set alert and emergency colors to more readable values

* Add entry to CHANGELOG.md about #111
2019-09-20 11:43:30 +02:00
Lukas Stockner
95b9cb1469 Add support for repeatable arguments (#118)
* Add support for declaring arguments as repeatable

If the usage of the argument includes the phrase "Can be repeated.",
the corresponding arg_ variable will be an array containing one element
per instance of the argument.

* Add example and test for using repeated parameters

* Add example and test for using repeated flags
2019-09-20 11:40:06 +02:00
Kevin van Zonneveld
ff89a1154b Add --allow-unauthenticated which hopefully fixes #119 2019-09-20 11:35:02 +02:00
Kevin van Zonneveld
9f31a5e969 Create bash3boilerplate.code-workspace 2019-09-20 11:34:43 +02:00
Lukas Stockner
664e55ad1e Fix or silence remaining warnings with shellcheck v0.7.0 (#117)
SC2235: The warning/suggestion about the subshell was letigimate, so
the suggested fix is implemented.

SC2034: The variable __invocation is indeed unused, but it's supposed
to be there in case the script using bash3boilerplate wants to use it,
so this commit silences the warning.

SC1102: The warning about the parsing of $((( is legitimate, so the
suggested fix is implemented.

SC2015: While the warning is correct in general, here 'true' has no
side effects hence it can be silenced.

Fixes #107.
2019-09-20 11:30:59 +02:00
QwertyZW
7b7d31a1bf Improve debug mode (#103)
Add file, line number, function name and function line offset
2019-05-06 10:04:09 +02:00
Manuel Streuhofer
ba0e7150cb close issue #108 (#109)
* added test for issue-108

* Closes #108

* fixed some easy shellcheck complaints

* trying to fix travis/debian-sid/shellcheck problem
2018-09-03 12:00:55 +02:00
Gabriel A. Devenyi
2048e4303e Add || true to fix __invocation with no arguments (#102) 2018-06-26 15:55:16 +02:00
Gabriel A. Devenyi
327cba75c9 Add magic variable that stores the full command line invocation (#99)
Provides variable __invocation which contains the command line
with proper separators maintained.

Adapted from https://stackoverflow.com/a/36625791
2018-06-06 15:28:55 +02:00
Manuel Streuhofer
ee869a9584 templater.sh: use perl if available (#98) 2018-01-25 10:35:53 +01:00
Manuel Streuhofer
f57e37eb68 fix templater.sh and associated test
templater.sh now escapes the delimiter it uses for its sed magic within
the environment variable content.

the associated test uses a properly cleaned up temporary file instead of
explicitly rm-ing its own mess.
2018-01-23 22:02:57 +01:00
A. G. Madi
2463cd6cc9 Allow counting how many times an argument is used. (#96)
An example of use would be the passing in of multiple -v options in some utilities to increase verbosity.
2018-01-22 15:21:48 +01:00
Manuel Streuhofer
860a7de899 shellcheck lead me astray 2018-01-21 23:19:16 +01:00
Manuel Streuhofer
236e3c7eca fix shellcheck errors
shellcheck 0.4.7 seems to have come up with new checks and now complains
about yet more possible issues. fixed them all as good as i could.
2018-01-21 23:02:03 +01:00
Kevin van Zonneveld
cf7d25e3d1 Build plz 2017-08-22 10:25:59 +02:00
Izaak "Zaak" Beekman
d25d6a0106 Merge pull request #93 from gmasse/fix_templater
templater.sh: Update Regexp to not match ${_} for replacement
2017-08-21 09:29:42 -04:00
Germain Masse
9b7a9ccd17 Fix Travis CI failure on src/templater.sh 2017-08-21 10:01:59 +02:00
Germain Masse
38622845a8 Update Regexp to not match ${_} for replacement 2017-08-21 09:34:44 +02:00
Izaak "Zaak" Beekman
0289532f18 Merge pull request #92 from gmasse/auto-color-screen
Enable color in screen or tmux
2017-08-14 15:14:29 -04:00
Germain Masse
2fcd0a765b
Fix typo in FAQ: 'Default:' to 'Default=' 2017-08-14 20:37:12 +02:00
Germain Masse
48848fd17c
Cange egrep to grep -E in templater.sh script to comply with ShellCheck 2017-08-14 20:35:18 +02:00
Germain Masse
84685a451b
Change egrep to grep -E in acceptance test script to comply with ShellCheck 2017-08-14 18:29:21 +02:00
Germain Masse
12ea4dd75f
Enable color in screen or tmux 2017-08-13 21:08:59 +02:00
Kevin van Zonneveld
63c402912a Upgrade Lanyon to v0.0.92 2017-07-06 11:39:50 +02:00
Kevin van Zonneveld
0c2a580041 Set new bot token 2017-05-12 11:31:55 +02:00
Giovanni Saponaro
eac5ad8022 Fix typos in megamount (#89) 2017-05-04 13:48:18 +02:00
Kevin van Zonneveld
9f3aa6ead9 Upgrade Lanyon to v0.0.86 2017-05-02 09:56:04 +02:00
Kevin van Zonneveld
c19c08a775 Upgrade Lanyon to v0.0.85 2017-04-29 14:45:41 +02:00
Kevin van Zonneveld
a0e9bb0c05 Upgrade Lanyon to v0.0.84 2017-04-27 15:16:03 +02:00
Kevin van Zonneveld
d134dfd145 Upgrade Lanyon to v0.0.83 2017-04-21 14:00:37 +02:00
Kevin van Zonneveld
f6996a1595 Upgrade Lanyon to v0.0.82 2017-04-20 10:22:53 +02:00
Kevin van Zonneveld
1c672bf8cb Upgrade Lanyon to v0.0.81 2017-04-06 14:38:50 +02:00
Kevin van Zonneveld
87545c8f9a Fix deploys 2017-04-06 13:18:15 +02:00
Kevin van Zonneveld
111a00e1f0 Upgrade Lanyon to v0.0.78 2017-04-06 12:56:19 +02:00
Kevin van Zonneveld
6f0cfaddb1 Upgrade Lanyon to v0.0.73 2017-04-05 12:39:13 +02:00
Kevin van Zonneveld
5f815c7f98 Upgrade Lanyon to v0.0.72 2017-04-05 12:05:38 +02:00
Kevin van Zonneveld
c4429de7d5 Upgrade Lanyon to v0.0.70 2017-04-05 11:23:48 +02:00
Kevin van Zonneveld
d35fa94ffc Upgrade Lanyon to v0.0.65 2017-03-23 15:34:43 +01:00
Kevin van Zonneveld
7759cba46f Upgrade Lanyon to v0.0.64 2017-03-23 14:56:33 +01:00
Kevin van Zonneveld
efd984e01d Upgrade Lanyon to v0.0.63 2017-02-22 11:04:34 +01:00
Kevin van Zonneveld
ef66310b27 Upgrade Lanyon to v0.0.62 2017-02-19 11:42:43 +01:00
Kevin van Zonneveld
3e9afe28c3 Upgrade Lanyon to v0.0.58 2017-02-15 18:41:37 +01:00
Kevin van Zonneveld
ef04df597b Fix diff 2017-02-15 09:49:46 +01:00
Kevin van Zonneveld
e7e85ddff3 Upgrade to lanyon@0.0.55 2017-02-15 09:49:36 +01:00
Kevin van Zonneveld
b2326bf75e Build plz 2017-02-15 09:15:27 +01:00
Izaak Beekman
9b86dcced8 Merge pull request #87 from kvz/fixup-after-230
fixup example.sh like 2.3.0 main.sh
2017-02-14 14:32:21 -05:00