grmbl
This commit is contained in:
18
giteaDo
18
giteaDo
@@ -23,11 +23,11 @@ cat <<EOF
|
||||
|
||||
-h,--help Display this message
|
||||
|
||||
-c,--create Create a reposiroty
|
||||
|
||||
-i,--instant Create a reposiroty in current folder with random commit message
|
||||
-c,--create Create a repository
|
||||
|
||||
-d,--delete Delete a reposority
|
||||
-i,--instant Create a repository in current folder with random commit message
|
||||
|
||||
-d,--delete Delete a repository
|
||||
|
||||
-l,--list List repositories
|
||||
|
||||
@@ -86,17 +86,17 @@ else
|
||||
usage
|
||||
;;
|
||||
-c|--create)
|
||||
read -p "Enter new repo's name (no spaces): " name
|
||||
read -p "Enter new repo's description: " description
|
||||
read -r -p "Enter new repo's name (no spaces): " name
|
||||
read -r -p "Enter new repo's description: " description
|
||||
createRepo "$name" "$description" | jq
|
||||
;;
|
||||
-i|--instant)
|
||||
read -p "Enter new repo's description: " description
|
||||
createRepo "$(basename $PWD)" "$description" | jq
|
||||
read -r -p "Enter new repo's description: " description
|
||||
createRepo "$(basename "$PWD")" "$description" | jq
|
||||
git init
|
||||
git add .
|
||||
git commit -m "$(curl -sL --fail https://whatthecommit.com/index.txt)"
|
||||
git remote add origin $GITEA_URL/$USERNAME/$(basename $PWD)
|
||||
git remote add origin "$GITEA_URL/$USERNAME/$(basename "$PWD")"
|
||||
git push -u origin main
|
||||
;;
|
||||
-d|--delete)
|
||||
|
||||
Reference in New Issue
Block a user