-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgit-clone-all.sh
executable file
·30 lines (29 loc) · 1.43 KB
/
git-clone-all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
#//////////////////////////////////////////////////////////////
#// ____ //
#// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
#// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
#// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
#// |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
#// |_| |_| //
#//////////////////////////////////////////////////////////////
#// //
#// Script, 2021 //
#// Created: 23, July, 2021 //
#// Modified: 25, July, 2021 //
#// file: - //
#// - //
#// Source: //
#// OS: ALL //
#// CPU: ALL //
#// //
#//////////////////////////////////////////////////////////////
if (( $# >= 1 )); then
for var in "$@"
do
git clone --recurse-submodules --remote-submodules --progress --jobs="$(nproc)" "$var"
done
else
echo "Usage: ${0##*/} <repo URL 1> <repo URL 2>..."
exit 1
fi