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