]> git.phdru.name Git - git-scripts.git/blobdiff - update
pull-usrlocalsrc: add git-remote-hg to PATH
[git-scripts.git] / update
diff --git a/update b/update
index 199e16fb9767fd7e83ec2d49ca765a684682abd7..fd10a24b725bd744ab58db2f5282a70e05641b2e 100755 (executable)
--- a/update
+++ b/update
@@ -5,14 +5,14 @@ origin="`git config --get --path remote.origin.url`"
 
 if [ -n "$origin" ]; then
    if [ -n "$current" ]; then
-      echo "UNKNOWN ERROR (both origin and current)" >&2
+      echo "Config error (both origin and current)" >&2
       exit 1
    else
-      cd "$origin" || exit 1
+      cd "$origin" &&
       exec ./update
    fi
 elif [ -z "$current" ]; then
-   echo "UNKNOWN ERROR (neither origin nor current)" >&2
+   echo "Wrong directory error (neither origin nor current)" >&2
    exit 1
 fi