mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-14 17:11:32 +01:00
Fix bug in uploading changes grep. Now works
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user