Commit f3fd9cd3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

functions: add docmd_foreach

parent 6d7e0c86
......@@ -93,6 +93,18 @@ docmd()
"$@"
}
# Print command line and run command line
docmd_foreach()
{
local cmd
cmd="$1"
#showcmd "$@"
shift
for pkg in "$@" ; do
docmd $cmd $pkg
done
}
# Print command line and run command line with SUDO
sudocmd()
{
......
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