aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-03-05 11:58:48 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-03-05 11:58:48 +0800
commit0baed097bd7cee1f99a844aff273eb732c1ecc5f (patch)
treef0e24e84b4596c14f99b30c97a9185e5e40682e3
parentd4ac779fdc2711c8f0f9c7b38214b2be2f0b29f2 (diff)
Update hint after deleting a gist
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index 403e809..40d6d31 100755
--- a/gist
+++ b/gist
@@ -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}