Skip to content
Browse files

Fix defaults

  • Loading branch information...
1 parent 980e4da commit 630e6d8168e4dcde76a238a2c14b6815516f0c0f @sickill committed Nov 9, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 git-dude
View
7 git-dude
@@ -21,9 +21,8 @@
# Distributed under the GNU General Public License, version 2.0.
set -e
-set -u
-interval=$(git config dude.interval)
+interval=$(git config dude.interval || true)
interval=${interval:-60}
export LC_ALL=C # make sure git talks english
@@ -55,7 +54,7 @@ function notify() {
echo
}
-[[ -d $1 ]] && cd $1
+[[ -d "$1" ]] && cd $1
while true; do
for dir_name in *; do
@@ -70,7 +69,7 @@ while true; do
changes=$(git fetch 2>&1 | grep -F -- '->' | sed -E 's/^\s+\+\s+//')
- icon_path=$(git config dude.icon)
+ icon_path=$(git config dude.icon || true)
icon_path=${icon_path:-`pwd`/icon.png}
eval icon_path=$icon_path # to expand ~

0 comments on commit 630e6d8

Please sign in to comment.
Something went wrong with that request. Please try again.