misc: comments

This commit is contained in:
Dylan Araps 2021-07-04 13:02:45 +00:00
parent 4b7ad1227d
commit b2646fc0ef
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 9 additions and 7 deletions

16
kiss
View File

@ -80,6 +80,7 @@ as_root() {
} }
file_owner() { file_owner() {
# Intentional, globbing disabled.
# shellcheck disable=2046 # shellcheck disable=2046
set -- $(ls -ld "$1") set -- $(ls -ld "$1")
@ -184,6 +185,8 @@ pkg_find() {
# Both counts of word-splitting are intentional here. Firstly to split # Both counts of word-splitting are intentional here. Firstly to split
# the repositories and secondly to allow for the query to be a glob. # the repositories and secondly to allow for the query to be a glob.
#
# Intentional.
# shellcheck disable=2086 # shellcheck disable=2086
for path in ${where:-$KISS_PATH} "${what:-$sys_db}"; do set +f for path in ${where:-$KISS_PATH} "${what:-$sys_db}"; do set +f
for path2 in "$path/"$query; do for path2 in "$path/"$query; do
@ -299,7 +302,7 @@ pkg_source() {
log "$1" "Downloading $src" log "$1" "Downloading $src"
mkdir -p "$PWD/$dest" mkdir -p "$PWD/$dest"
# Intentional behavior, globbing disabled. # Intentional, globbing disabled.
# shellcheck disable=2046,2086 # shellcheck disable=2046,2086
${KISS_DL:-curl -fLo} "$_des" "$src" || { ${KISS_DL:-curl -fLo} "$_des" "$src" || {
rm -f "$_des" rm -f "$_des"
@ -671,7 +674,7 @@ pkg_build() {
# Order the argument list and filter out duplicates. # Order the argument list and filter out duplicates.
pkg_order "$@" pkg_order "$@"
# See [1] at top of script. # Intentional, globbing disabled.
# shellcheck disable=2046,2086 # shellcheck disable=2046,2086
set -- $order set -- $order
@ -703,7 +706,7 @@ pkg_build() {
log "Building: explicit: $*${deps:+, implicit: ${deps## }}" log "Building: explicit: $*${deps:+, implicit: ${deps## }}"
# See [1] at top of script. # Intentional, globbing disabled.
# shellcheck disable=2046,2086 # shellcheck disable=2046,2086
set -- $deps "$@" set -- $deps "$@"
@ -807,7 +810,7 @@ pkg_build() {
fi fi
done done
# Turn the explicit packages into a 'list'. See [1] at top of script. # Intentional, globbing disabled.
# shellcheck disable=2046,2086 # shellcheck disable=2046,2086
set -- $explicit set -- $explicit
@ -1390,7 +1393,7 @@ pkg_updates() {
log "Updating repositories" log "Updating repositories"
# Create a list of all repositories. # Create a list of all repositories.
# See [1] at top of script. # Intentional, globbing disabled.
# shellcheck disable=2046,2086 # shellcheck disable=2046,2086
{ IFS=:; set -- $KISS_PATH; unset IFS; } { IFS=:; set -- $KISS_PATH; unset IFS; }
@ -1641,9 +1644,8 @@ args() {
help-ext) help-ext)
log 'Installed extensions (kiss-* in PATH)' log 'Installed extensions (kiss-* in PATH)'
# Behavior intentional. # Intentional, globbing disabled.
# shellcheck disable=2046,2030,2031 # shellcheck disable=2046,2030,2031
# see [1] at top of script.
set -- $(pkg_find kiss-\* all -x "$PATH") set -- $(pkg_find kiss-\* all -x "$PATH")
# To align descriptions figure out which extension has the longest # To align descriptions figure out which extension has the longest