Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. diff --git a/update.elv b/update.elv
  2. index 7bf4d15..b071890 100644
  3. --- a/update.elv
  4. +++ b/update.elv
  5. @@ -73,7 +73,11 @@ fn check-commit [&commit=(current-commit-or-tag) &verbose=$false]{
  6. compare = [(re:split "\r\n\r\n" $compare)]
  7. headers = $compare[-2]
  8. json = (echo $compare[-1] | from-json)
  9. - if (and (has-key $json total_commits) (> $json[total_commits] 0)) {
  10. + total_commits = 0
  11. + if (and (has-key $json total_commits)) {
  12. + total_commits = $json[total_commits]
  13. + }
  14. + if (> $total_commits 0) {
  15. echo (styled $update-message yellow)
  16. if $verbose {
  17. for commit $json[commits] {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement