aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist4
1 files changed, 2 insertions, 2 deletions
diff --git a/gist b/gist
index 5f64513..e2c6f79 100755
--- a/gist
+++ b/gist
@@ -525,8 +525,8 @@ _import_to_github() {
525# Simply commit current changes and push to remote 525# Simply commit current changes and push to remote
526_push_to_remote() { 526_push_to_remote() {
527 if [[ ! $(pwd) =~ ^$folder/[0-9a-z]+$ ]]; then 527 if [[ ! $(pwd) =~ ^$folder/[0-9a-z]+$ ]]; then
528 _gist_id "$1" 528 _gist_id "$1" || return 1
529 cd "$folder/$GIST_ID" || return 1 529 cd "$folder/$GIST_ID"
530 fi 530 fi
531 if [[ -n $(git status --short) ]]; then 531 if [[ -n $(git status --short) ]]; then
532 git add . && git commit -m 'update' 532 git add . && git commit -m 'update'