forked from kiss-community/kiss
kiss: Remove use of variable
This commit is contained in:
parent
7ccd59977d
commit
4ff9c5cc2e
12
kiss
12
kiss
@ -1070,12 +1070,10 @@ pkg_updates() {
|
|||||||
# Display a tick if signing is enabled for this
|
# Display a tick if signing is enabled for this
|
||||||
# repository.
|
# repository.
|
||||||
case $(git config merge.verifySignatures) in
|
case $(git config merge.verifySignatures) in
|
||||||
true) signed='[[32;1msigned ✓[m]' ;;
|
true) log "$PWD" "[[32;1msigned ✓[m] " ;;
|
||||||
*) signed= ;;
|
*) log "$PWD" " " ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
log "$PWD" "$signed "
|
|
||||||
|
|
||||||
if [ -w "$PWD" ] && [ "$(id -u)" != 0 ]; then
|
if [ -w "$PWD" ] && [ "$(id -u)" != 0 ]; then
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
@ -1120,6 +1118,9 @@ pkg_updates() {
|
|||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Disable globbing.
|
||||||
|
set -f
|
||||||
|
|
||||||
# If the package manager has an update, handle it first.
|
# If the package manager has an update, handle it first.
|
||||||
contains "$outdated" kiss && {
|
contains "$outdated" kiss && {
|
||||||
log "Detected package manager update"
|
log "Detected package manager update"
|
||||||
@ -1136,9 +1137,6 @@ pkg_updates() {
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Disable globbing.
|
|
||||||
set -f
|
|
||||||
|
|
||||||
# End here if no packages have an update.
|
# End here if no packages have an update.
|
||||||
[ "$outdated" ] || {
|
[ "$outdated" ] || {
|
||||||
log "Everything is up to date"
|
log "Everything is up to date"
|
||||||
|
Loading…
Reference in New Issue
Block a user