diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-02-01 21:08:02 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-02-02 16:30:41 +0000 |
commit | 0bbccf3893a0c5a2ce38bb0d9c5ce3e975ae1775 (patch) | |
tree | f283f7d42e21642dc34e49514998808b42822ba5 /absurd/git | |
parent | ece5816db28a48e097d99da1bfaf4d853726b851 (diff) |
dgit: absurd: Break out PATH filtering
Actually this function just sets it to the already-computed $npath,
but this is an implementation detail.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'absurd/git')
-rwxr-xr-x | absurd/git | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -25,6 +25,10 @@ if test "x$PATH" = "x$npath"; then fail "PATH FILTER FAIL ($0 $self $PATH)" fi +filter_path () { + PATH=$npath +} + bypass=true for arg in "$@"; do case "$arg" in @@ -35,7 +39,7 @@ for arg in "$@"; do done if $bypass; then - PATH=$npath + filter_path echo >&3 "DGIT ABSURD GIT APPLY - BYPASS: $*" exec git "$@" fi |