Skip to content

Commit 43682bd

Browse files
authored
Merge pull request #12368 from sputnick-dev/patch-2
profiler docs: add version detection
2 parents 3a4f59e + e7fadac commit 43682bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

developer_manual/digging_deeper/profiler.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ using the latest development version of Nextcloud.
1313

1414
.. code-block:: bash
1515
16+
major_version=$(sudo -E -u www-data php occ version 2>&1 | awk -F'[. ]' '{print $2;exit}')
1617
cd apps/
17-
git clone --branch stableX https://github.com/nextcloud/profiler.git
18-
# adapt X to your Nextcloud version: sudo -E -u www-data php occ version | grep -oP 'Nextcloud \K\d+'
18+
git clone --branch stable$major_version https://github.com/nextcloud/profiler.git
1919
cd profiler
2020
cd ../..
2121

0 commit comments

Comments
 (0)