From: Oleg Broytman Date: Fri, 1 Mar 2019 22:50:34 +0000 (+0300) Subject: Fix: Remove excessive redirection and exit code check X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=9ce073122e61d2b27bc8921a4e1667fbb3f3ed2e Fix: Remove excessive redirection and exit code check --- diff --git a/edit-description b/edit-description index 1e7605e..d378202 100755 --- a/edit-description +++ b/edit-description @@ -4,5 +4,5 @@ g="`git rev-parse --git-dir`" && if [ "`cat $g/description`" = "Unnamed repository; edit this file 'description' to name the repository." ] then - exec `git var GIT_EDITOR` "$g"/description < /dev/tty + exec `git var GIT_EDITOR` "$g"/description fi diff --git a/run-recursive b/run-recursive index 5881aed..3599293 100755 --- a/run-recursive +++ b/run-recursive @@ -3,5 +3,5 @@ "$@" && if [ -f .gitmodules ]; then - exec git submodule foreach --quiet --recursive "$@" || exit 1 + exec git submodule foreach --quiet --recursive "$@" fi