Skip to content

Commit 743b445

Browse files
sputnick-devszaimen
authored andcommitted
Version detection
In the previous command, the `|&` was not a typo but intentional. Was removed outside of github AFAIK. The output of `php occ version` is on `STDERR`. Anyway, now this is a POSIX way to detect version. Signed-off-by: Gilles Quénot <[email protected]>
1 parent 3a4f59e commit 743b445

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

developer_manual/digging_deeper/profiler.rst

+2-2
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=$(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)