summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-08 15:14:18 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-08 15:14:18 +0200
commit2db4a5d32970aa004ccec50e4e32bc3b5b8d6223 (patch)
tree3b3f176427adcd898ae80c71e6e05f388b94d779
parentad2d3244410b56c1fbd0547b60197bd20a880037 (diff)
bin/pkg: Use clear_line more often
-rwxr-xr-xbin/pkg6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index 9c4c66a..74f42c9 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -251,9 +251,11 @@ pkg_update () {
info "Looking for updates: $1"
NEW=$($VCS_CMD $VCS_OPTIONS $VCS_INCOMING)
if ([ $? = 0 ]) {
- info "\rUpdating: $1 to $(echo $NEW | tail -n 1)"
+ clear_line
+ info "Updating: $1 to $(echo $NEW | tail -n 1)"
$VCS_CMD $VCS_OPTIONS $VCS_UPDATE $VCS_UPDATE_OPTIONS
- info "\rUpdated: $1 to $(echo $NEW | tail -n 1) \n"
+ clear_line
+ info "Updated: $1 to $(echo $NEW | tail -n 1) \n"
if ([ -r Makefile ]) {
info "Building binaries\n"
make