summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBBcan177 <bbcan177@gmail.com>2015-12-13 12:41:41 -0500
committerBBcan177 <bbcan177@gmail.com>2015-12-13 12:41:41 -0500
commit489c102bb146f680e9f132a392fde7a4e70ad4f9 (patch)
treea6c8b824cfe59b988237a3a89270ec09bc98b751 /src
parent1e7e5fd55c8c6ed640e4fa11b10258d3e038bd86 (diff)
downloadpfsense-489c102bb146f680e9f132a392fde7a4e70ad4f9.zip
pfsense-489c102bb146f680e9f132a392fde7a4e70ad4f9.tar.gz
Update pfsense-utils.inc
When installing packages, an extra line break is added by the "\r" ... echo "\r{$status}"; The $status string typically contain a trailing "\n" as required. This allows to print a message in two steps. Writing configuration... done. 1) print "Writing configuration..." 2) print "done" after the command completes.
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/pfsense-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc
index 6d6fa54..b57f70e 100644
--- a/src/etc/inc/pfsense-utils.inc
+++ b/src/etc/inc/pfsense-utils.inc
@@ -1812,7 +1812,7 @@ function update_status($status) {
global $pkg_interface;
if ($pkg_interface == "console") {
- echo "\r{$status}";
+ print ("{$status}");
}
/* ensure that contents are written out */
OpenPOWER on IntegriCloud