Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
kiss: show progress bar on install
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Sep 11, 2019
1 parent ee1d56c commit 1388315
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kiss
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ pkg_install() {

[ "$install_dep" ] && die "[$1] Package requires ${install_dep%, }"

log "[$pkg_name] Installing package"
log "[$pkg_name] Installing package incrementally"

# Block being able to abort the script with Ctrl+C during installation.
# Removes all risk of the user aborting a package installation leaving
Expand All @@ -679,13 +679,13 @@ pkg_install() {

# This is repeated multiple times. Better to make it a function.
pkg_rsync() {
rsync --chown=root:root -WhHKa "$1" --no-compress --exclude etc -- \
rsync --chown=root:root -WhHKa --no-compress "$1" --exclude etc -- \
"$tar_dir/$pkg_name/" "$KISS_ROOT/"
}

# Install the package by using 'rsync' and overwrite any existing files
# (excluding '/etc/').
pkg_rsync -v
pkg_rsync --info=progress2

# If '/etc/' exists in the package, install it but don't overwrite.
[ -d "$tar_dir/$pkg_name/etc" ] &&
Expand Down

0 comments on commit 1388315

Please sign in to comment.