Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-09-16 15:26:51 +0300
committerthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-09-16 15:26:51 +0300
commitd98356e335d864134fc86255854fd4ce591a8590 (patch)
tree9bb57b823ee8e6d6af415d2bb39f84dce75ed66b /bin
parenta0f16c6443997ceb549aa34154aa79b17d831d43 (diff)
ncp-report: Don't rely on functions defined in library.sh
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ncp-report5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/ncp-report b/bin/ncp-report
index 4fbc7864..e598b243 100755
--- a/bin/ncp-report
+++ b/bin/ncp-report
@@ -15,7 +15,7 @@ function open_summary()
{
echo "
<details>
-<summary>$@</summary>
+<summary>$*</summary>
\`\`\`
"
@@ -62,8 +62,7 @@ close_summary
##
-DATADIR="$( get_nc_config_value datadirectory ||
- grep datadirectory /var/www/nextcloud/config/config.php |
+DATADIR="$( grep datadirectory /var/www/nextcloud/config/config.php |
awk '{ print $3 }' | grep -oP "[^']*[^']" | head -1 )"
open_summary "Nextcloud logs"