From 9cdcdb368a3347ad3938066f2de77261ed76983d Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 22 Jul 2022 04:56:18 -0400 Subject: [PATCH] Change all the &> redirrects into more posix compliant version. --- linux-game-manager.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 2ff7003..c02ce4c 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -51,7 +51,7 @@ check_update() { if [[ "$url" =~ ^ssh://|git@ ]] || [[ -z "$url" ]]; then return fi - git remote update &> /dev/null + git remote update > /dev/null 2>&1 local upstream='@{u}' local home="$(git rev-parse @)" local remote="$(git rev-parse "$upstream")" @@ -130,7 +130,7 @@ desktop_launcher() { local terminal # Try to find an accessible terminal for i in mate-terminal lxterminal terminator gnome-terminal ; do - if command -v $i &> /dev/null ; then + if command -v $i > /dev/null 2>&1 ; then terminal="$i" break fi @@ -382,7 +382,7 @@ requiredPackages=( "wget" ) for i in "${requiredPackages[@]}" ; do - if ! command -v $i &> /dev/null ; then + if ! command -v $i > /dev/null 2>&1 ; then echo "Please install $i before continuing." exit 1 fi