Change all the &> redirrects into more posix compliant version.
This commit is contained in:
parent
18c4790ddb
commit
9cdcdb368a
@ -51,7 +51,7 @@ check_update() {
|
|||||||
if [[ "$url" =~ ^ssh://|git@ ]] || [[ -z "$url" ]]; then
|
if [[ "$url" =~ ^ssh://|git@ ]] || [[ -z "$url" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
git remote update &> /dev/null
|
git remote update > /dev/null 2>&1
|
||||||
local upstream='@{u}'
|
local upstream='@{u}'
|
||||||
local home="$(git rev-parse @)"
|
local home="$(git rev-parse @)"
|
||||||
local remote="$(git rev-parse "$upstream")"
|
local remote="$(git rev-parse "$upstream")"
|
||||||
@ -130,7 +130,7 @@ desktop_launcher() {
|
|||||||
local terminal
|
local terminal
|
||||||
# Try to find an accessible terminal
|
# Try to find an accessible terminal
|
||||||
for i in mate-terminal lxterminal terminator gnome-terminal ; do
|
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"
|
terminal="$i"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@ -382,7 +382,7 @@ requiredPackages=(
|
|||||||
"wget"
|
"wget"
|
||||||
)
|
)
|
||||||
for i in "${requiredPackages[@]}" ; do
|
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."
|
echo "Please install $i before continuing."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user