-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathset_retry.sh
More file actions
executable file
·37 lines (33 loc) · 1.28 KB
/
set_retry.sh
File metadata and controls
executable file
·37 lines (33 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Copyright (C) 2024
# Associated Universities, Inc. Washington DC, USA.
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Library General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
# License for more details.is
#
# You should have received a copy of the GNU Library General Public License
# along with this library; if not, write to the Free Software Foundation,
# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
#
# Correspondence concerning this should be addressed as follows:
# Postal address: National Radio Astronomy Observatory
# 1003 Lopezville Road,
# Socorro, NM - 87801, USA
#
# $Id$
init_retry=0
echo "noderetry = $(( $1 + $init_retry ))" > imcycle.htc
echo "imcycle = $(( $1 + $init_retry + 1 ))" >> imcycle.htc
if [ $(( $1 + $init_retry )) -gt 0 ]
then
echo "copy_model = True" >> imcycle.htc
else
echo "copy_model = False" >> imcycle.htc
fi