mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
fix(php.sudo)
This commit is contained in:
parent
431fefd66b
commit
f6b5174874
|
@ -47,9 +47,14 @@ build:
|
|||
script:
|
||||
# this is annoying. install-pear-nozlib.phar relies on finding /usr/bin/cpp.
|
||||
# and editing the archive messes with the offsets
|
||||
- run: |
|
||||
if command -v sudo >/dev/null; then
|
||||
SUDO=sudo
|
||||
fi
|
||||
if: linux
|
||||
- run: |
|
||||
if [ ! -f /usr/bin/cpp ]; then
|
||||
sudo ln -s "{{deps.gnu.org/gcc.prefix}}/bin/cpp" /usr/bin/cpp
|
||||
$SUDO ln -s "{{deps.gnu.org/gcc.prefix}}/bin/cpp" /usr/bin/cpp
|
||||
FAKE_CPP=1
|
||||
fi
|
||||
if: linux
|
||||
|
@ -59,7 +64,7 @@ build:
|
|||
# clean up our fake /usr/bin/cpp
|
||||
- run: |
|
||||
if [ -n "$FAKE_CPP" ]; then
|
||||
sudo rm /usr/bin/cpp
|
||||
$SUDO rm /usr/bin/cpp
|
||||
fi
|
||||
if: linux
|
||||
|
||||
|
|
Loading…
Reference in a new issue