From 10435fd96d059bee0b9123e1d3db62e02ffb3ce6 Mon Sep 17 00:00:00 2001 From: kprkpr Date: Mon, 13 Jun 2016 00:09:33 +0200 Subject: [PATCH] odiwhan --- jka-toolkit/odiwhan | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jka-toolkit/odiwhan b/jka-toolkit/odiwhan index 6e19035..68e6c09 100755 --- a/jka-toolkit/odiwhan +++ b/jka-toolkit/odiwhan @@ -1,19 +1,19 @@ #!/bin/bash -gitopt=`dialog --stdout --nocancel --scrollbar --menu "Odiwhan, git simple" 0 0 6 1 "Descargar actualizaciones del git (Hacer pull)" 2 "Subir actualizaciones al git (Hacer push)" 3 "Descargar un nuevo git (Hacer clone)" 4 "Cambiar de branch/rama (Hacer checkout)"` +gitopt=`dialog --stdout --nocancel --scrollbar --menu "Odiwhan, git simple" 0 0 6 p "Descargar actualizaciones del git (Hacer pull)" s "Subir actualizaciones al git (Hacer push)" c "Descargar un nuevo git (Hacer clone)" b "Cambiar de branch/rama (Hacer checkout)"` case $gitopt in - 1) git pull;; - 2) commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50` + "p") git pull;; + "s") commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50` if [[ -z $commit ]];then commit="changes" fi git add . && git commit -m "$commit" && git push ;; - 3) + "c") giturl=`dialog --stdout --inputbox "URL del git" 10 60` git clone $giturl ;; - 4) + "b") gitbranch=`dialog --stdout --inputbox "Nueva rama/branch" 10 60` git checkout $gitbranch ;;