cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 4ff9c5cc2e1ee8b680616be8cc153d6de770ff9c
parent 7ccd59977d9ad324ddae6da4382f412933d07a0f
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Thu,  6 Feb 2020 13:55:01 +0200

kiss: Remove use of variable

Diffstat:
Mkiss | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/kiss b/kiss @@ -1070,12 +1070,10 @@ pkg_updates() { # Display a tick if signing is enabled for this # repository. case $(git config merge.verifySignatures) in - true) signed='[signed ✓]' ;; - *) signed= ;; + true) log "$PWD" "[signed ✓] " ;; + *) log "$PWD" " " ;; esac - log "$PWD" "$signed " - if [ -w "$PWD" ] && [ "$(id -u)" != 0 ]; then git pull @@ -1120,6 +1118,9 @@ pkg_updates() { } done + # Disable globbing. + set -f + # If the package manager has an update, handle it first. contains "$outdated" kiss && { log "Detected package manager update" @@ -1136,9 +1137,6 @@ pkg_updates() { exit 0 } - # Disable globbing. - set -f - # End here if no packages have an update. [ "$outdated" ] || { log "Everything is up to date"