Consistently invoke bash with /usr/bin/env bash in scripts to make code more portable (JIRA Ticket SPARK-817)

This commit is contained in:
Ubuntu 2013-07-18 00:51:18 +00:00
Родитель cad48edb70
Коммит 88a0823c58
10 изменённых файлов: 13 добавлений и 10 удалений

Просмотреть файл

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more

Просмотреть файл

@ -13,7 +13,7 @@ title: Tutorial - Running a Simple Spark Application
3. Edit the ~/SparkTest/sbt/sbt file to look like this: 3. Edit the ~/SparkTest/sbt/sbt file to look like this:
#!/bin/bash #!/usr/bin/env bash
java -Xmx800M -XX:MaxPermSize=150m -jar $(dirname $0)/sbt-launch-*.jar "$@" java -Xmx800M -XX:MaxPermSize=150m -jar $(dirname $0)/sbt-launch-*.jar "$@"
4. To build a Spark application, you need Spark and its dependencies in a single Java archive (JAR) file. Create this JAR in Spark's main directory with sbt as: 4. To build a Spark application, you need Spark and its dependencies in a single Java archive (JAR) file. Create this JAR in Spark's main directory with sbt as:

Просмотреть файл

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# These variables are automatically filled in by the mesos-ec2 script. # These variables are automatically filled in by the mesos-ec2 script.
export MESOS_MASTERS="{{master_list}}" export MESOS_MASTERS="{{master_list}}"

Просмотреть файл

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# These variables are automatically filled in by the mesos-ec2 script. # These variables are automatically filled in by the mesos-ec2 script.
export MESOS_MASTERS="{{master_list}}" export MESOS_MASTERS="{{master_list}}"

Просмотреть файл

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more

Просмотреть файл

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more

Просмотреть файл

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more

2
run
Просмотреть файл

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more

Просмотреть файл

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more

Просмотреть файл

@ -1,4 +1,4 @@
#!/bin/bash --posix #!/usr/bin/env bash
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
@ -25,6 +25,9 @@
# -c <cores> Set the number of cores for REPL to use # -c <cores> Set the number of cores for REPL to use
# #
# Enter posix mode for bash
set -o posix
FWDIR="`dirname $0`" FWDIR="`dirname $0`"
for o in "$@"; do for o in "$@"; do