Invoke the bash shell via /usr/bin/env so that these scripts run on operating systems without /bin/bash too.
TEST=run "git cl owners" on FreeBSD
BUG=
Review URL: https://codereview.chromium.org/197213008
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@274320 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/man/src/common_demo_functions.sh b/man/src/common_demo_functions.sh
index af7c906..8f85ad1 100755
--- a/man/src/common_demo_functions.sh
+++ b/man/src/common_demo_functions.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
REMOTE=$(pwd)/demo_repo
diff --git a/man/src/demo_repo.sh b/man/src/demo_repo.sh
index a07a47e..25bf4f0 100755
--- a/man/src/demo_repo.sh
+++ b/man/src/demo_repo.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
. common_demo_functions.sh
diff --git a/man/src/depot_tools_tutorial.demo.walkthrough.sh b/man/src/depot_tools_tutorial.demo.walkthrough.sh
index a7efa81..f5207cc 100755
--- a/man/src/depot_tools_tutorial.demo.walkthrough.sh
+++ b/man/src/depot_tools_tutorial.demo.walkthrough.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
BLANK_DEMO=1
. demo_repo.sh
diff --git a/man/src/git-freeze.demo.1.sh b/man/src/git-freeze.demo.1.sh
index 397d183..82a0f1f 100755
--- a/man/src/git-freeze.demo.1.sh
+++ b/man/src/git-freeze.demo.1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
. demo_repo.sh
add deleted_file
diff --git a/man/src/git-map-branches.demo.1.sh b/man/src/git-map-branches.demo.1.sh
index add9249..c7fb70e 100755
--- a/man/src/git-map-branches.demo.1.sh
+++ b/man/src/git-map-branches.demo.1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
. demo_repo.sh
silent git branch no_upstream HEAD~
diff --git a/man/src/git-map.demo.1.sh b/man/src/git-map.demo.1.sh
index 2c46c89..ec3ee93 100755
--- a/man/src/git-map.demo.1.sh
+++ b/man/src/git-map.demo.1.sh
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/usr/bin/env bash
. demo_repo.sh
run git map
diff --git a/man/src/git-nav-downstream.demo.1.sh b/man/src/git-nav-downstream.demo.1.sh
index 2c0f5e5..d6a7743 100755
--- a/man/src/git-nav-downstream.demo.1.sh
+++ b/man/src/git-nav-downstream.demo.1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
. demo_repo.sh
silent git checkout origin/master
diff --git a/man/src/git-nav-upstream.demo.1.sh b/man/src/git-nav-upstream.demo.1.sh
index 206ed26..e0296bb 100755
--- a/man/src/git-nav-upstream.demo.1.sh
+++ b/man/src/git-nav-upstream.demo.1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
. demo_repo.sh
silent git checkout subfeature
diff --git a/man/src/git-new-branch.demo.1.sh b/man/src/git-new-branch.demo.1.sh
index 85eef05..b0ce57f 100755
--- a/man/src/git-new-branch.demo.1.sh
+++ b/man/src/git-new-branch.demo.1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
. demo_repo.sh
run git map-branches
diff --git a/man/src/git-squash-branch.demo.1.sh b/man/src/git-squash-branch.demo.1.sh
index 83cbce6..f43d7d6 100755
--- a/man/src/git-squash-branch.demo.1.sh
+++ b/man/src/git-squash-branch.demo.1.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
. demo_repo.sh
run git map
diff --git a/man/src/make_docs.sh b/man/src/make_docs.sh
index d011a61..73d76e2 100755
--- a/man/src/make_docs.sh
+++ b/man/src/make_docs.sh
@@ -1,4 +1,7 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+
+set -e
+
shopt -s nullglob
cd $(dirname "$0")
diff --git a/man/src/prep_demo_repo.sh b/man/src/prep_demo_repo.sh
index 241097c..f267a9f 100755
--- a/man/src/prep_demo_repo.sh
+++ b/man/src/prep_demo_repo.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
NO_AUTOPREP=True
. common_demo_functions.sh