diff options
author | merakor <cem@ckyln.com> | 2020-11-09 13:21:18 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-11-09 13:21:18 +0000 |
commit | c10e49d9caf08d0729024f5cf770634a739ebbe3 (patch) | |
tree | 9f80992e0bc95d8a3b7c4665f808699da01b694a | |
parent | 13e58869dc0bf24acacc98650ef95d0d27598a4f (diff) | |
download | cpt-c10e49d9caf08d0729024f5cf770634a739ebbe3.tar.gz |
cpt-lib: don't make main() a function unto itself
FossilOrigin-Name: 3f01d4659d9f4e7488387436153fc9a20723b40f28515c5020172a83eb88128b
-rw-r--r-- | src/cpt-lib | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cpt-lib b/src/cpt-lib index e5d526a..9cd3d2d 100644 --- a/src/cpt-lib +++ b/src/cpt-lib @@ -1774,7 +1774,8 @@ create_cache() { } -main() { +# main() +{ set -ef # If a parser definition exists, let's run it ourselves. This makes sure we @@ -1875,5 +1876,3 @@ main() { fi } - -main "$@" |