Commit Graph

84 Commits

Author SHA1 Message Date
Kevin van Zonneveld
ea15c44c7e Remove Travis 2020-11-23 20:10:45 +01:00
Ross Smith II
269627deec
Simplify example in readme (#133) 2020-02-17 09:51:55 +01:00
R. Fuehrer
971a83ea3a Enhanced ini file handling (#128)
* Add ini file creation if not exists
Add section creation if not exists
Add default section if section not given
Fix read key value only from given (or default) section

* Fix to support platform specific sed

* Fixed typo in comment

* Fix test scenario to reflect changes to the (introduced) default section

* Fix expectations for scenario test

* Fix style guide compatibility
2019-12-31 15:16:08 +01:00
Ross Smith II
14dc823cca Fix readme to use [[ per readme (#126)
To be consistent with
https://github.com/kvz/bash3boilerplate/edit/master/README.md#Scoping
2019-12-09 09:22:33 +01:00
Gert Goet
599faf3830 Correct error_code in err_report (#124) (#125) 2019-11-18 11:56:18 +01: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
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
Germain Masse
12ea4dd75f
Enable color in screen or tmux 2017-08-13 21:08:59 +02:00
Giovanni Saponaro
eac5ad8022 Fix typos in megamount (#89) 2017-05-04 13:48:18 +02:00
Izaak Beekman
7cf9ea708d Issue 44 issue 21 issue 47 (#85)
* Fix shifting over `--`: don't throw errexit

 Fixes #21

* Add error trapping (including Ctrl-C) info to FAQ

 Closes #47

* Add backtracing to help localize errors

 - Fixes #44
 - Backtracing is turned on when the debugging `-d` flag is passed,
   otherwise backtracing function defined but signal trap not set.
 - Update main-help fixture due to moving trap

* Untabify main.sh

 Might be a controversial move, but I loath tabs...

* Add checks for tab chars and trailing whitespace

 - Update poor-man's style enforcement script to check for these
   violations
 - Better document style guidlines in README with small tweaks

* Add a magic variable to indicate if being source

 if `__i_am_main_script=1 #true` then `main.sh` called directly
 Fixes #45
2017-02-10 15:03:07 +01:00
Manuel Streuhofer
57ebf1569d Updated README and FAQ (#66)
* updated TOC
* fixed typos
* link to bash3boilerplate.sh/main.sh instead of blob/master/main.sh
* updated links from e.g. blob/master/main.sh#L13 to
  blob/v2.1.0/main.sh#L13
2016-11-29 10:36:49 +01:00
Josh
195e84fe09 Fix minor typo in README.md (#49)
There was a space in an instance of the word instead
2016-08-18 10:20:55 +02:00
Kevin van Zonneveld
34e437b23c Improved english (#43)
* Not completely done yet

* Not completely done yet either

* Update README.md

* One of two ways

* Prefer `source` over `.` for readability

* Use backticks where possible

* Update FAQ.md
2016-06-28 15:14:24 +02:00
Kevin van Zonneveld
35b51072b3 No more os detection (#41) 2016-06-24 13:12:41 +02:00
Kevin van Zonneveld
8bbba18f7e Offer the main template for download as http://bash3boilerplate.sh/main.sh 2016-06-24 11:47:28 +02:00
Kevin van Zonneveld
03a2ec5adf Better OS detection (#39) 2016-06-23 16:20:45 +02:00
Kevin van Zonneveld
1f2e1842b3 Elaborate on what portability really means for us 2016-06-23 10:07:58 +02:00
Kevin van Zonneveld
2b3ee1d195 Merge branch 'master' of github.com:kvz/bash3boilerplate 2016-06-23 09:48:45 +02:00
Kevin van Zonneveld
2d302dd8ac Be more precise with the extra permissive LICENSE clause 2016-06-23 09:48:24 +02:00
Bobby Earl
3d22171ba3 Fixed typo 2016-06-22 19:25:06 -04:00
Kevin van Zonneveld
e0055e5dc1 Fix the bad wording around defaults #34
Thanks to galaktos
2016-06-22 20:44:15 +02:00
Kevin van Zonneveld
845a9dfb50 Clarify that {} is not always required, but rather b3bp-recommended #34
Thanks to galaktos
2016-06-22 20:41:53 +02:00
Kevin van Zonneveld
ca8c0a19df Credit galaktos 2016-06-22 20:39:21 +02:00
Kevin van Zonneveld
1166c878be Improve copy around single equal signs #34
Thanks to galaktos
2016-06-22 20:38:36 +02:00
Kevin van Zonneveld
9dea81377e Fix unquoted variable access within [ tests… #34
Thanks to galaktos
2016-06-22 20:36:17 +02:00
Kevin van Zonneveld
bc1b96db71 Clean up and categorize best practices 2016-06-22 10:11:56 +02:00
Kevin van Zonneveld
818d7c81c7 Return Windows as OS when under Git Bash (?) #32 2016-06-22 09:52:38 +02:00
Kevin van Zonneveld
494584b6fd Typos 2016-06-21 20:20:57 +02:00
Kevin van Zonneveld
8e9814bc6a Use only http://cobralab.ca/ 2016-06-21 16:12:38 +02:00
Kevin van Zonneveld
be3ca43dff Add social banners 2016-06-21 14:06:25 +02:00
Kevin van Zonneveld
83b13e5f55 Adopt a few more best practices from my old blogpost http://kvz.io/blog/2013/11/21/bash-best-practices/ 2016-06-21 13:37:47 +02:00
Kevin van Zonneveld
16401017e0 Invite folks to get listed 2016-06-21 11:52:22 +02:00
Kevin van Zonneveld
2d25f6b0dc Add a who uses section to the readme/website 2016-06-21 11:47:18 +02:00
Kevin van Zonneveld
400f29b30c Unsure if we'll do custom packages actually 2016-06-21 11:34:51 +02:00
Kevin van Zonneveld
26e282c37f Smoother navigation and changelog 2016-06-21 11:20:59 +02:00
Kevin van Zonneveld
fe733c1356 Elaborate on new best practice a little 2016-06-21 10:32:29 +02:00
Kevin van Zonneveld
ae230acc3b Add best practice of using __double_underscore_prefixed_vars 2016-06-21 10:21:00 +02:00
Kevin van Zonneveld
d0ece6da76 Website (#30)
* Base on apex.run

* More custom themie

* Loop to write

* Support inline links

* Smaller header

* Auto-deploys via travis

* Rewording to make for a better homepage
2016-06-21 09:40:25 +02:00
Kevin van Zonneveld
707a14634c Update README.md 2016-06-20 10:15:37 +02:00
Kevin van Zonneveld
18525f72da Make the license less restrictive. See #14 (#28)
* Make the license less restrictive. See #14

So that people can use _just_ main.sh without bothering with also
distributing the license

* Add license update to changelog

* Add a comment about expansion, see #26

* Use an unmodified MIT License, with the more permissive clause inside the code

As modifying the MIT License will needlessly (but rightfully) cause
suspicion

* Credit @bravo-kernel for his feedback

* Fix another typo

* Reword copyright
2016-06-20 09:57:31 +02:00
Kevin van Zonneveld
244e54daa6 Credit @jokajak 2016-06-20 09:44:57 +02:00
Kevin van Zonneveld
12f1013611 Credit @gdevenyi for his testing and suggestions 2016-06-19 13:17:52 +02:00
Kevin van Zonneveld
8687e384eb Split out changelog into separate file, credit @rouson for the FAQ 2016-03-03 12:45:07 +01:00
Kevin van Zonneveld
0b79205fb1 Let's standardize on in-line links.
It may be a bit messy, but I also don't particularly enjoy the context switching that comes from scrolling back & forth in order to see if the links are still valid, or what is being linked to exactly, after a long break from the project.
2016-03-03 11:37:41 +01:00
Damian Rouson
1fc44d2034 Add TOC and FAQ.md link to README.md 2016-03-02 10:19:48 -08:00
Kevin van Zonneveld
a4326476a3 Update README.md 2016-02-25 10:28:22 +01:00
Kevin van Zonneveld
676989a779 Add to release notes 2016-02-23 10:22:34 +01:00
Kevin van Zonneveld
fa7f217556 Update README.md 2016-02-23 09:47:11 +01:00
Kevin van Zonneveld
a6d2a2ad2f Version info 2016-02-17 13:42:26 +01:00
Kevin van Zonneveld
2b46168792 Breaking release means new major 2016-02-17 13:39:05 +01:00