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