aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-06 11:55:01 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-06 11:55:01 +0000
commit163d12e3ee87ef93a8cefa8331acaea8895db20b (patch)
tree8ec3e914d2fe11ef0785dba62db6c974dfa127b5
parent5384ae409f609f5418374a54cd3c7f15cddd51ee (diff)
downloadcpt-163d12e3ee87ef93a8cefa8331acaea8895db20b.tar.gz
kiss: Remove use of variable
FossilOrigin-Name: 8d4fc0e726aa8b4fff6db8d9b50308a32be7d9d11cf95c8b104a20c0042e1322
-rwxr-xr-xkiss12
1 files changed, 5 insertions, 7 deletions
diff --git a/kiss b/kiss
index cdab1fd..f2cf6cb 100755
--- 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"