diff --git a/developer_manual/digging_deeper/profiler.rst b/developer_manual/digging_deeper/profiler.rst index ed4ac591c..21822c960 100644 --- a/developer_manual/digging_deeper/profiler.rst +++ b/developer_manual/digging_deeper/profiler.rst @@ -13,9 +13,9 @@ using the latest development version of Nextcloud. .. code-block:: bash + major_version=$(php occ version 2>&1 | awk -F'[. ]' '{print $2;exit}') cd apps/ - git clone --branch stableX https://github.com/nextcloud/profiler.git - # adapt X to your Nextcloud version: sudo -E -u www-data php occ version | grep -oP 'Nextcloud \K\d+' + git clone --branch stable$major_version https://github.com/nextcloud/profiler.git cd profiler cd ../..