testing..
This commit is contained in:
parent
8a7a9bddc6
commit
3a25f27595
1 changed files with 3 additions and 3 deletions
|
@ -9,15 +9,15 @@ function gsa
|
|||
|
||||
# ─< Prompt the user to enter the relative path where the submodule will be cloned >────────
|
||||
# ─< Advise not to use the leading / or ./ >────────────────────────────────────────────────
|
||||
echo -n "-- enter the relative path, where the submodule will be cloned to. (don't use fist / or ./) --"
|
||||
echo "-- enter the relative path, where the submodule will be cloned to. (don't use fist / or ./) --"
|
||||
read -l -S path
|
||||
|
||||
echo -n "-- enter a name for the submodule --"
|
||||
echo "-- enter a name for the submodule --"
|
||||
read -l -S name
|
||||
|
||||
# ─< Ask the user for confirmation if the constructed command looks correct >───────────────
|
||||
echo "git submodule add --branch $branch --name $name $repo $path"
|
||||
echo -n "-- does this command look right to you? [y/n] --"
|
||||
echo "-- does this command look right to you? [y/n] --"
|
||||
read -l comm
|
||||
|
||||
# ─< Switch statement to handle the user's confirmation input >─────────────────────────────
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue