scripts: Get Bash from /usr/bin/env (#647)

Not all *Nix systems have Bash located at /bin/bash, this fixes building Vita3k
on them.
This commit is contained in:
Samuel Gräfenstein 2020-01-30 20:31:30 +01:00 committed by GitHub
parent cc474cb739
commit d68067bef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 6 deletions

View file

@ -1,3 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash
set -ex
docker run -v $(pwd):/Vita3K -v "$HOME/.ccache":/root/.ccache gcc:8 /bin/bash -ex /Vita3K/.travis/linux/docker.sh || exit $?
docker run -v $(pwd):/Vita3K -v "$HOME/.ccache":/root/.ccache gcc:8 /usr/bin/env bash -ex /Vita3K/.travis/linux/docker.sh || exit $?

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -ex
UNICORN_ARCHS=arm UNICORN_DEBUG=no UNICORN_SHARED=no ./make.sh

View file

@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash
set -ex
find vita3k tools/gen-modules tools/native-tool \( -name *.cpp -o -name *.h \) | xargs clang-format -i

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -ex
# CI uses pre-built Boost

View file

@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash
set -ex
BOOST_FOUND="$(cmake --find-package -DNAME=Boost -DCOMPILER_ID=GNU -DLANGUAGE=C -DMODE=EXIST)"