Avoiding hard-coded bash path
Changed '#!/bin/bash' to '#!/usr/bin/env bash'. There do not exist bash in most Unix system, like bsd family.
This commit is contained in:
parent
3a955eb32d
commit
2f97f6aadc
2
configure
vendored
2
configure
vendored
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
## Set up python-related environment settings
|
||||
while true; do
|
||||
|
@ -306,7 +306,7 @@ if [[ "${DO_DOCKER}" == "1" ]]; then
|
||||
fi
|
||||
|
||||
# Write to the tmp script
|
||||
echo "#!/bin/bash" > ${TMP_SCRIPT}
|
||||
echo "#!/usr/bin/env bash" > ${TMP_SCRIPT}
|
||||
if [[ ! -z "${TF_BUILD_BAZEL_CLEAN}" ]] &&
|
||||
[[ "${TF_BUILD_BAZEL_CLEAN}" != "0" ]]; then
|
||||
echo ${BAZEL_CLEAN_CMD} >> ${TMP_SCRIPT}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2015 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2015 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2015 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash -eux
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2015 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -14,6 +14,8 @@
|
||||
# limitations under the License.
|
||||
# ==============================================================================
|
||||
|
||||
set -eux
|
||||
|
||||
TFDIR=$TEST_SRCDIR/tensorflow
|
||||
DOXYGEN=doxygen
|
||||
DOXYGEN_CONFIG="tf-doxy_for_md-config"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2015 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2015 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
2
third_party/gpus/cuda/cuda_config.sh
vendored
2
third_party/gpus/cuda/cuda_config.sh
vendored
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2015 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2015 Google Inc. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
Loading…
Reference in New Issue
Block a user