diff --git a/jka-toolkit/gitdit b/jka-toolkit/gitdit index 3613e1f..881991a 100755 --- a/jka-toolkit/gitdit +++ b/jka-toolkit/gitdit @@ -2,7 +2,7 @@ # gitdit, a dialog interface to manage git repositories # Author: JKA Network - contacto@jkanetwork.com -VERSION="1.0.1" +VERSION="1.0.2" #First check if the user is in a git repository preOption=$(git status 2>/dev/stdout | sed -n 1p | cut -f2 -d" ") if [ $preOption = "Not" ];then #When it isn't only it can do git clone @@ -47,7 +47,7 @@ if [ ! -z $gitopt ];then #No canceled "p") git pull $actual;; "s") - estado=$(git status | grep -oE "^Changes|^Untracked" ) #It need to commit something? + estado=$(git status | grep -E '(^Changes|^Untracked)' ) #It need to commit something? if [ "$estado" ];then #When is necesary commit commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50 "changes"` if [[ -z $commit ]];then