Change all the &> redirrects into more posix compliant version.

This commit is contained in:
Storm Dragon 2022-07-22 04:56:18 -04:00
parent 18c4790ddb
commit 9cdcdb368a

View File

@ -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