diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-10-01 02:19:27 -0700 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-10-12 12:41:31 -0300 |
commit | 53b9a2ac97b717bc2afa44c356d215fa3669d133 (patch) | |
tree | f94c10fd5a62e7fee152a5215876cb9cb7e83e86 /src/etc/phpshellsessions | |
parent | b19c80332c41468e7472c53df2f101c806361a86 (diff) | |
download | pfsense-53b9a2ac97b717bc2afa44c356d215fa3669d133.zip pfsense-53b9a2ac97b717bc2afa44c356d215fa3669d133.tar.gz |
Report quantity of files being installed by minimal and diff options.
Also consolidate some unset commands.
(cherry picked from commit 32912ae833a016784cbb4813c45960cefc2d896b)
Diffstat (limited to 'src/etc/phpshellsessions')
-rw-r--r-- | src/etc/phpshellsessions/gitsync | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/etc/phpshellsessions/gitsync b/src/etc/phpshellsessions/gitsync index c24a956..522ba2b 100644 --- a/src/etc/phpshellsessions/gitsync +++ b/src/etc/phpshellsessions/gitsync @@ -468,22 +468,22 @@ if(isset($args["--minimal"]) || isset($args["--diff"])) { $files_to_copy_array = array_merge($updated_files_array[1], $different_files_array[1], $missing_files_array[1]); $files_to_copy_array = array_unique($files_to_copy_array); - unset($updated_files_array); - unset($different_files_array); - unset($missing_files_array); + unset($updated_files_array, $different_files_array, $missing_files_array); # Convert the list from an array to a space separated quoted string. Quoted for white space file name support. if (count($files_to_copy_array) > 0) { # Leave the string empty/unset if there is nothing to copy. $files_to_copy = '"' . implode('" "', $files_to_copy_array) . '"'; } + $qty_files_to_copy = count($files_to_copy_array); unset($files_to_copy_array); } else { $files_to_copy = '.'; + $qty_files_to_copy = chr(8); } $tar_options = '-C ./src'; -echo "===> Installing new files...\n"; +echo "===> Installing $qty_files_to_copy new files...\n"; if ($g['platform'] == $g['product_name']) { $command = "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO ; tar -cpf - {$tar_options} {$files_to_copy} | (cd / ; tar -Uxpf -)"; |