From 2cd7af40b795d16739ef734dfa2f6fded3c8af5f Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 6 Jan 2019 11:33:44 -0800 Subject: [PATCH] Make stderr redirection compatible with Fish 3.0. --- functions/gitunyaw.fish | 2 +- functions/gityaw.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/gitunyaw.fish b/functions/gitunyaw.fish index 48bbd2b..8f7118c 100644 --- a/functions/gitunyaw.fish +++ b/functions/gitunyaw.fish @@ -1,5 +1,5 @@ function gitunyaw -d "Replace Git SSH remote by HTTPS" - if not git status >/dev/null ^&1 + if not git status >/dev/null 2>&1 echo "This doesn't look to be a git repository" return 1 end diff --git a/functions/gityaw.fish b/functions/gityaw.fish index 6bc2421..ab77c9d 100644 --- a/functions/gityaw.fish +++ b/functions/gityaw.fish @@ -1,5 +1,5 @@ function gityaw -d "Replace Git HTTPS remote by SSH" - if not git status >/dev/null ^&1 + if not git status >/dev/null 2>&1 echo "This doesn't look to be a git repository" return 1 end