diff --git a/jka-toolkit/gitdit b/jka-toolkit/gitdit index 0e895c5..9cfdf2c 100755 --- a/jka-toolkit/gitdit +++ b/jka-toolkit/gitdit @@ -1,8 +1,8 @@ #!/bin/bash VERSION="0.1.3" gitopt=`dialog --stdout --scrollbar --menu "gitdit - Git DIalog inTerface" 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)" m "Unir ramas (Hacer merge)"` -alias brunch='git branch --list' -actual="origin $(brunch | grep "^*" | cut -f1 -d" ")" +brunch=`git branch --list` +actual="origin $($brunch | grep "^*" | cut -f1 -d" ")" case $gitopt in "p") git pull $actual;; "s") commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50 "changes"` @@ -18,9 +18,9 @@ case $gitopt in "b") j=0 rama="" - for i in $(brunch) + for i in $($brunch) do - if [ $i != "*" ] + if [ $i != "*" ];then rama="$rama $j $i" lista[$j]=$i let j++