aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-04-11 20:07:27 +0000
committerMatt Kraai <kraai@debian.org>2001-04-11 20:07:27 +0000
commit90d7f696d651d4ad9caa6ecbdf09498798695c04 (patch)
treeeed3e2349dd3c34829865de1bfb95088fc6860e4
parent65317ea27fd048686d4d75a116db3e869b7c0093 (diff)
downloadbusybox-90d7f696d651d4ad9caa6ecbdf09498798695c04.tar.gz
Only finish with a newline if we are displaying the progress indicator.
-rw-r--r--networking/wget.c7
-rw-r--r--wget.c7
2 files changed, 10 insertions, 4 deletions
diff --git a/networking/wget.c b/networking/wget.c
index c416a5862..b58a251a0 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -424,7 +424,10 @@ read_response: if (fgets(buf, sizeof(buf), sfp) == NULL)
error_msg_and_die("ftp error: %s", buf+4);
ftpcmd("QUIT", NULL, sfp, buf);
}
- printf("\n");
+#ifdef BB_FEATURE_WGET_STATUSBAR
+ if (quiet_flag==FALSE)
+ printf("\n");
+#endif
exit(EXIT_SUCCESS);
}
@@ -732,7 +735,7 @@ progressmeter(int flag)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.33 2001/04/11 20:03:01 kraai Exp $
+ * $Id: wget.c,v 1.34 2001/04/11 20:07:27 kraai Exp $
*/
diff --git a/wget.c b/wget.c
index c416a5862..b58a251a0 100644
--- a/wget.c
+++ b/wget.c
@@ -424,7 +424,10 @@ read_response: if (fgets(buf, sizeof(buf), sfp) == NULL)
error_msg_and_die("ftp error: %s", buf+4);
ftpcmd("QUIT", NULL, sfp, buf);
}
- printf("\n");
+#ifdef BB_FEATURE_WGET_STATUSBAR
+ if (quiet_flag==FALSE)
+ printf("\n");
+#endif
exit(EXIT_SUCCESS);
}
@@ -732,7 +735,7 @@ progressmeter(int flag)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.33 2001/04/11 20:03:01 kraai Exp $
+ * $Id: wget.c,v 1.34 2001/04/11 20:07:27 kraai Exp $
*/