mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
shutils: Fix broken redirections
Redirecting all output to /dev/null needs >/dev/null 2>&1 . Fix cases where 2>&1 /dev/null was used, and also remove &> that is not POSIX.
This commit is contained in:
parent
e0c53d0999
commit
9e0300b9f2
@ -161,7 +161,7 @@ cgroups_run_into() {
|
||||
|
||||
# Check if the required CGroup exists
|
||||
$FIND $CGMOUNT -type d -mindepth 1 | \
|
||||
$GREP -E "^$CGMOUNT/devlib_cgh[0-9]{1,2}$CGP" &>/dev/null
|
||||
$GREP -E "^$CGMOUNT/devlib_cgh[0-9]{1,2}$CGP" >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: could not find any $CGP cgroup under $CGMOUNT"
|
||||
exit 1
|
||||
@ -345,7 +345,7 @@ _command_not_found() {
|
||||
exit 1
|
||||
}
|
||||
# Check the command exists
|
||||
type "$CMD" 2>&1 >/dev/null || _command_not_found
|
||||
type "$CMD" >/dev/null 2>&1 || _command_not_found
|
||||
|
||||
"$CMD" "$@"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user