Only finish with a newline if we are displaying the progress indicator.

This commit is contained in:
Matt Kraai 2001-04-11 20:07:27 +00:00
parent 65317ea27f
commit 90d7f696d6
2 changed files with 10 additions and 4 deletions

View File

@ -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 $
*/

7
wget.c
View File

@ -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 $
*/