Commit d2e7936d authored by Vitaly Lipatov's avatar Vitaly Lipatov

add del with multiple package support

parent 9aad1e7a
......@@ -129,6 +129,33 @@ if [ "$1" = "copy" ] ; then
exit
fi
if [ "$1" = "add" ] ; then
if [ "$2" = "del" ] || [ "$3" = "del" ] ; then
shift
if [ "$1" = "del" ] ; then
shift
TASK="$(get_last)"
else
TASK="$1"
shift 2
fi
PACKAGELIST=''
while [ -n "$1" ] ; do
PACKAGELIST="$PACKAGELIST $1"
shift
done
[ -n "$PACKAGELIST" ] || fatal "no packages"
for PACKAGE in $PACKAGELIST ; do
docmd ssh $GEARHOST task add $TASK copy $PACKAGE $FROMSTR
done
exit
fi
fi
if [ "$1" = "commit" ] ; then
shift
COMMIT=''
......
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