kiss: fix CI

This commit is contained in:
Dylan Araps 2020-09-23 11:55:42 +03:00
parent 313cc1544f
commit 18de7a0670
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

12
kiss
View File

@ -578,6 +578,8 @@ pkg_build() {
! contains "$explicit_build" "$pkg" && pkg_cache "$pkg" && { ! contains "$explicit_build" "$pkg" && pkg_cache "$pkg" && {
log "$pkg" "Installing binary from cache" log "$pkg" "Installing binary from cache"
# False positive.
# shellcheck disable=2030
( (
KISS_FORCE=1 KISS_FORCE=1
args i "$tar_file" args i "$tar_file"
@ -663,6 +665,8 @@ pkg_build() {
log "$pkg" "Needed as a dependency or has an update, installing" log "$pkg" "Needed as a dependency or has an update, installing"
# False positive.
# shellcheck disable=2030
( (
KISS_FORCE=1 KISS_FORCE=1
args i "$pkg" args i "$pkg"
@ -1028,7 +1032,8 @@ pkg_remove() {
# differently and configuration files are *not* overwritten. # differently and configuration files are *not* overwritten.
pkg_list "$1" >/dev/null pkg_list "$1" >/dev/null
# Make sure that nothing depends on this package. # False positive.
# shellcheck disable=2031
[ "$KISS_FORCE" = 1 ] || { [ "$KISS_FORCE" = 1 ] || {
log "$1" "Checking for reverse dependencies" log "$1" "Checking for reverse dependencies"
@ -1087,6 +1092,8 @@ pkg_install() {
[ -f "./$pkg_db/$pkg/manifest" ] || [ -f "./$pkg_db/$pkg/manifest" ] ||
die "Not a valid KISS package" die "Not a valid KISS package"
# False positive.
# shellcheck disable=2031
[ "$KISS_FORCE" = 1 ] || { [ "$KISS_FORCE" = 1 ] || {
pkg_manifest_verify "$pkg_db/$pkg/manifest" pkg_manifest_verify "$pkg_db/$pkg/manifest"
@ -1313,6 +1320,9 @@ args() {
# Rerun the script as root with a fixed environment if needed. We sadly # Rerun the script as root with a fixed environment if needed. We sadly
# can't run singular functions as root so this is needed. # can't run singular functions as root so this is needed.
#
# False positive.
# shellcheck disable=2031
case $action in case $action in
a|alternatives|i|install|r|remove) a|alternatives|i|install|r|remove)
[ -z "$1" ] || [ -w "$KISS_ROOT/" ] || [ "$uid" = 0 ] || { [ -z "$1" ] || [ -w "$KISS_ROOT/" ] || [ "$uid" = 0 ] || {