Commit 6deb8374 authored by Vitaly Lipatov's avatar Vitaly Lipatov

sudocmd_forearch: return error status

parent 6f0217af
......@@ -142,6 +142,7 @@ sudocmd()
}
# Run every arg with sudocmd
# Returns on any error
sudocmd_foreach()
{
local cmd pkg
......@@ -149,7 +150,7 @@ sudocmd_foreach()
#showcmd "$@"
shift
for pkg in "$@" ; do
sudocmd "$cmd" $pkg
sudocmd "$cmd" $pkg || return
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment