Chromium Code Reviews| Index: build/install-build-deps-android.sh |
| diff --git a/build/install-build-deps-android.sh b/build/install-build-deps-android.sh |
| index 73e534a286922d02a8ef5cb4594b6af7c1433508..c3375ad858cf1b6023498ccc7eb8a013faa437e8 100755 |
| --- a/build/install-build-deps-android.sh |
| +++ b/build/install-build-deps-android.sh |
| @@ -17,11 +17,9 @@ if ! uname -m | egrep -q "i686|x86_64"; then |
| exit |
| fi |
| -if [ "x$(id -u)" != x0 ]; then |
| - echo "Running as non-root user." |
| - echo "You might have to enter your password one or more times for 'sudo'." |
| - echo |
| -fi |
| +# Install first the default Linux build deps. |
| +"$(dirname "${BASH_SOURCE[0]}")/install-build-deps.sh" \ |
|
Nico
2014/04/03 20:19:56
Is `$(dirname "${0}") enough? It's not like there'
Primiano Tucci (use gerrit)
2014/04/03 20:54:10
I think the difference between $0 vs $BASH_SOURCE
Nico
2014/04/03 20:58:36
We use $0 in a bunch of places, and I never heard
Primiano Tucci (use gerrit)
2014/04/03 21:30:31
~ $ cat foo
#!/bin/bash
echo My dir-1 is $(dirname
|
| + --no-syms --no-arm --no-chromeos-fonts --no-nacl --no-prompt |
| # The temporary directory used to store output of update-java-alternatives |
| TEMPDIR=$(mktemp -d) |