]> git.phdru.name Git - git-scripts.git/commitdiff
Minor refactoring
authorOleg Broytman <phd@phdru.name>
Thu, 26 May 2016 07:57:32 +0000 (10:57 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 26 May 2016 07:57:32 +0000 (10:57 +0300)
update

diff --git a/update b/update
index 17d6cf20571f5c650722b712c31ab9a1260a9c69..205c7c6f21ab59737d825e73d302a3359dfc2338 100755 (executable)
--- a/update
+++ b/update
@@ -8,7 +8,7 @@ if [ -n "$origin" ]; then
       echo "Config error (both origin and current)" >&2
       exit 1
    else
-      cd "$origin" || exit 1
+      cd "$origin" &&
       exec ./update
    fi
 elif [ -z "$current" ]; then