We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605e3c4 commit 8650bb6Copy full SHA for 8650bb6
scripts/util.sh
@@ -60,17 +60,17 @@ run_in_dir() (
60
# Run a git command in all in the current directory and in top-level git subdirectories.
61
# Usage: git_all commit | push | pull | fetch | status | branch ...
62
git_all() (
63
- local cmd="$*"
+ local cmd=("$@")
64
echo "$(pwd)"
65
- (git $cmd) &
+ (git "${cmd[@]}") &
66
jobs=($!)
67
68
for dir in $(ls -d */); do
69
if [ -d "$dir/.git" ]; then
70
echo "$dir"
71
(
72
cd "$dir" || exit 1
73
- git $cmd
+ git "${cmd[@]}"
74
) &
75
jobs+=($!) # Capture the PID of the background process
76
fi
@@ -96,7 +96,7 @@ clone_gitlab() (
96
97
98
git clone $URL
99
- cd $repo
+ cd $repo
100
set_branch
101
git checkout $CODE_BRANCH 2>/dev/null || true
102
)
0 commit comments