|
@@ -167,7 +167,7 @@ mass_link_edit() {
|
167
|
167
|
txt_param=$(head -n $(expr $ltext_count \* $i) $text_ids | tail -n$ltext_count|tr -s "\n" "," | sed 's/,$//')
|
168
|
168
|
echo "$base_uri/admin/update?classname=$cls&lodel_id=$cur_id POST $(curl_opt_create_$cls $alias_param $txt_param)&uid=$cur_id"
|
169
|
169
|
done
|
170
|
|
- rm -v $text_ids $person_ids $section_ids $subsection_ids
|
|
170
|
+ rm -v $text_ids $person_ids $section_ids $subsection_ids >&2
|
171
|
171
|
;;
|
172
|
172
|
|
173
|
173
|
Collection)
|
|
@@ -180,7 +180,7 @@ mass_link_edit() {
|
180
|
180
|
publication_param=$(head -n $(expr $publications_count \* $i) $publication_ids| tail -n$publications_count|tr -s "\n" ",")
|
181
|
181
|
echo "$base_uri/admin/update?classname=$cls&lodel_id=$cur_id POST $(curl_opt_create_$cls $publication_param)&uid=$cur_id"
|
182
|
182
|
done
|
183
|
|
- rm -v $collections_ids $publication_ids
|
|
183
|
+ rm -v $collections_ids $publication_ids >&2
|
184
|
184
|
;;
|
185
|
185
|
|
186
|
186
|
Publication)
|
|
@@ -264,9 +264,9 @@ mass_deletion() {
|
264
|
264
|
id=$(tail -n $i $id_list_file | head -n1)
|
265
|
265
|
echo "${base_uri}/admin/delete?classname=$cls&lodel_id=$id"
|
266
|
266
|
done
|
267
|
|
- rm -v $id_list_file
|
|
267
|
+ rm -v $id_list_file >&2
|
268
|
268
|
done
|
269
|
|
- rm -v $cls_list_file
|
|
269
|
+ rm -v $cls_list_file >&2
|
270
|
270
|
}
|
271
|
271
|
|
272
|
272
|
|
|
@@ -278,7 +278,7 @@ fetch_all_classes() {
|
278
|
278
|
then
|
279
|
279
|
echo "Unable to fetch class list for $1" >&2
|
280
|
280
|
echo "Request was : $curl_raw '$(_base_uri $1)/list_classes'" >&2
|
281
|
|
- rm $cls_list_file
|
|
281
|
+ rm $cls_list_file >&2
|
282
|
282
|
exit 1
|
283
|
283
|
fi
|
284
|
284
|
echo $cls_list_file
|
|
@@ -350,7 +350,7 @@ run_bg_with_param() {
|
350
|
350
|
do
|
351
|
351
|
wait $pid
|
352
|
352
|
done
|
353
|
|
- rm -v $pidlist
|
|
353
|
+ rm -v $pidlist >&2
|
354
|
354
|
}
|
355
|
355
|
|
356
|
356
|
get_queries_with_params() {
|