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

sudocmd_forearch: return error status

parent 6f0217af
...@@ -142,6 +142,7 @@ sudocmd() ...@@ -142,6 +142,7 @@ sudocmd()
} }
# Run every arg with sudocmd # Run every arg with sudocmd
# Returns on any error
sudocmd_foreach() sudocmd_foreach()
{ {
local cmd pkg local cmd pkg
...@@ -149,7 +150,7 @@ sudocmd_foreach() ...@@ -149,7 +150,7 @@ sudocmd_foreach()
#showcmd "$@" #showcmd "$@"
shift shift
for pkg in "$@" ; do for pkg in "$@" ; do
sudocmd "$cmd" $pkg sudocmd "$cmd" $pkg || return
done 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