Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fail fast on errors

  • Loading branch information...
commit 84a6e5dc5fb000626a8e22be33a09a05bc312efe 1 parent 17c8b51
@sickill authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 git-dude
View
7 git-dude
@@ -20,6 +20,9 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# Distributed under the GNU General Public License, version 2.0.
+set -e
+set -u
+
interval=$(git config dude.interval)
interval=${interval:-60}
@@ -66,11 +69,11 @@ while true; do
;;
*new\ branch*)
branch_name=$(echo "$line" | awk '{ print $4 }')
- notify $icon_path "New branch $repo_name/$branch_name"
+ notify $icon_path "New branch $repo_name/$branch_name" ""
;;
*new\ tag*)
tag_name=$(echo "$line" | awk '{ print $4 }')
- notify $icon_path "New tag $repo_name/$tag_name"
+ notify $icon_path "New tag $repo_name/$tag_name" ""
;;
esac
done <<< "$changes"
Please sign in to comment.
Something went wrong with that request. Please try again.