mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-14 09:01:31 +01:00
Ident file and grammar fix
This commit is contained in:
@@ -14,7 +14,7 @@ else #Else, all other options
|
|||||||
fi
|
fi
|
||||||
if [ ! -z $gitopt ];then #No canceled
|
if [ ! -z $gitopt ];then #No canceled
|
||||||
case $gitopt in
|
case $gitopt in
|
||||||
#Not staying in a git repo
|
#Options not in a git repo
|
||||||
"i")
|
"i")
|
||||||
gitdir=`dialog --stdout --inputbox "Repo directory" 10 60 "."`
|
gitdir=`dialog --stdout --inputbox "Repo directory" 10 60 "."`
|
||||||
if [ $(echo $gitdir | cut -f1 -d"/") = "~" ];then #~ don't understand like $HOME
|
if [ $(echo $gitdir | cut -f1 -d"/") = "~" ];then #~ don't understand like $HOME
|
||||||
@@ -41,14 +41,16 @@ else
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"c")
|
"c")
|
||||||
giturl=`dialog --stdout --inputbox "URL del git" 10 60`
|
giturl=`dialog --stdout --inputbox "git URL: " 10 60`
|
||||||
if [ -z $giturl ];then
|
if [ -z $giturl ];then
|
||||||
echo "No repository there."
|
echo "No URL specified."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
git clone $giturl
|
git clone $giturl
|
||||||
;;
|
;;
|
||||||
#Staying in a git repo
|
|
||||||
|
|
||||||
|
#Options of a git repo
|
||||||
"p")
|
"p")
|
||||||
git pull $actual;;
|
git pull $actual;;
|
||||||
"s")
|
"s")
|
||||||
|
|||||||
Reference in New Issue
Block a user