mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 02:31:29 +00:00
Add quotes around paths in bash scripts
Follow up to crrev.com/c/2125626. This allows depot_tools commands to run successfully when depot_tools is installed in a path containing spaces. Change-Id: I8f99dbdcb3b1acf27d51ce26b6153f643b8d4dcd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2127675 Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org> Reviewed-by: Josip Sokcevic <sokcevic@google.com>
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
|
||||
SCRIPT=git_freezer.py
|
||||
set -- freeze "$@"
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
2
git-map
2
git-map
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
|
||||
SCRIPT=git_retry.py
|
||||
set -- retry "$@"
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
2
git-thaw
2
git-thaw
@@ -10,4 +10,4 @@
|
||||
|
||||
SCRIPT=git_freezer.py
|
||||
set -- thaw "$@"
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
# git_upstream_diff.py -- Provide the diff between the current branch and its
|
||||
# upstream.
|
||||
|
||||
. $(type -P python_runner.sh)
|
||||
. "$(type -P python_runner.sh)"
|
||||
|
||||
@@ -119,7 +119,7 @@ function update_git_repo {
|
||||
# Update git checkouts.
|
||||
if [ "X$DEPOT_TOOLS_UPDATE" != "X0" ]; then
|
||||
if [ -e "$base_dir/.git" ]; then
|
||||
cd $base_dir
|
||||
cd "$base_dir"
|
||||
update_git_repo
|
||||
cd - > /dev/null
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user