mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-16 10:01:33 +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
|
# gitdit, a dialog interface to manage git repositories
|
||||||
# Author: JKA Network - contacto@jkanetwork.com
|
# Author: JKA Network - contacto@jkanetwork.com
|
||||||
|
|
||||||
VERSION="1.0.1"
|
VERSION="1.0.2"
|
||||||
#First check if the user is in a git repository
|
#First check if the user is in a git repository
|
||||||
preOption=$(git status 2>/dev/stdout | sed -n 1p | cut -f2 -d" ")
|
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
|
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")
|
"p")
|
||||||
git pull $actual;;
|
git pull $actual;;
|
||||||
"s")
|
"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
|
if [ "$estado" ];then #When is necesary commit
|
||||||
commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50 "changes"`
|
commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50 "changes"`
|
||||||
if [[ -z $commit ]];then
|
if [[ -z $commit ]];then
|
||||||
|
|||||||
Reference in New Issue
Block a user