diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-03-05 11:58:48 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-03-05 11:58:48 +0800 |
| commit | 0baed097bd7cee1f99a844aff273eb732c1ecc5f (patch) | |
| tree | f0e24e84b4596c14f99b30c97a9185e5e40682e3 | |
| parent | d4ac779fdc2711c8f0f9c7b38214b2be2f0b29f2 (diff) | |
Update hint after deleting a gist
| -rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -583,7 +583,7 @@ _delete_gist() { | |||
| 583 | for i in "$@"; do | 583 | for i in "$@"; do |
| 584 | _gist_id "$i" &> /dev/null || continue | 584 | _gist_id "$i" &> /dev/null || continue |
| 585 | http_method DELETE "$GITHUB_API/gists/${GIST_ID}" \ | 585 | http_method DELETE "$GITHUB_API/gists/${GIST_ID}" \ |
| 586 | && echo "$i" deleted \ | 586 | && echo "$i is deleted, but the local git repo is still at $folder/${GIST_ID}" \ |
| 587 | && sed -i'' -Ee "/^$i / d" $INDEX | 587 | && sed -i'' -Ee "/^$i / d" $INDEX |
| 588 | done | 588 | done |
| 589 | } | 589 | } |