diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-11 05:54:45 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-11 05:54:45 +0000 |
commit | 8f2b0ff60ad0984d9a1789ca1dc1b39ce6ec97c9 (patch) | |
tree | 48e7f2fb0ecc099b291fde934c2d7ef5c0de6a5e /kiss | |
parent | 00fbd879daae21ea238bec57b64d4e32d8c85e29 (diff) | |
download | cpt-8f2b0ff60ad0984d9a1789ca1dc1b39ce6ec97c9.tar.gz |
kiss: more concise entry comments
FossilOrigin-Name: b013a71067f3252d300b95633b38cfb7aff041bdcb75bf6782520a28ae4bba0f
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 31 |
1 files changed, 9 insertions, 22 deletions
@@ -1,30 +1,17 @@ #!/bin/sh -ef # -# This is a simple package manager written in POSIX 'sh' for -# KISS Linux, utilizing the core UNIX utilities where needed. +# This is a simple package manager written in POSIX 'sh' for use +# in KISS Linux (https://getkiss.org). # -# Disable warnings against word-splitting and globbing. -# They are used *safely* throughout this script as globbing -# is globally disabled and assumptions can be made about the input. -# shellcheck disable=2046,2086 -# -# The script runs with 'set -e' enabled. It will exit on any -# non-zero return code. This ensures that no function continues -# if it fails at any point. -# -# Keep in mind that this involves extra code in the case where -# an error is optional and/or required. +# This script runs with '-ef' meaning: +# '-e': Abort on any non-zero exit code. +# '-f': Disable globbing globally. # -# Where possible the package manager should check things first, -# die if necessary and continue if all is well. -# -# The code below conforms to shellcheck's rules. However, some -# lint errors *are* disabled as they relate to unexpected -# behavior (which we do expect). -# -# KISS is available under the MIT license. +# Warnings related to word splitting and globbing are disabled. +# All word splitting in this script is *safe* and intentional. +# shellcheck disable=2046,2086 # -# - Dylan Araps. +# Dylan Araps. die() { # Print a message and exit with '1' (error). |