diff options
| -rwxr-xr-x | gist | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -472,10 +472,9 @@ _gist_id() { | |||
| 472 | # set gist id either by given index or current directory | 472 | # set gist id either by given index or current directory |
| 473 | _set_gist_id() { | 473 | _set_gist_id() { |
| 474 | if [[ -z $1 ]]; then | 474 | if [[ -z $1 ]]; then |
| 475 | [[ $(dirname $(pwd)) == $folder ]] && GIST_ID=$(basename $(pwd)) || return 1 | 475 | [[ $(dirname $(pwd)) == $folder ]] && GIST_ID=$(basename $(pwd)) |
| 476 | else | ||
| 477 | _gist_id "$1" || return 1 | ||
| 478 | fi | 476 | fi |
| 477 | _gist_id "$1" || return 1 | ||
| 479 | } | 478 | } |
| 480 | 479 | ||
| 481 | # Show path of repo by gist ID, and perform action | 480 | # Show path of repo by gist ID, and perform action |