summaryrefslogtreecommitdiff
path: root/rhimport-rs
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport-rs')
-rwxr-xr-xrhimport-rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/rhimport-rs b/rhimport-rs
index b92d310..3cbc3ff 100755
--- a/rhimport-rs
+++ b/rhimport-rs
@@ -48,6 +48,10 @@ binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
binmode(STDERR, ":utf8");
+if($#ARGV >= 0 && $ARGV[0] eq 'last') {
+ print "!!!This is the last attempt, there won't be a retry on error!!!\n"
+}
+
my $user = `/usr/bin/id -un`;
$user =~ s/\n//;
my $group = "radioStimm";
@@ -140,7 +144,12 @@ while(1) {
}
if($file eq "" || !(-e "$file")) {
- print "No Entry found from $bdtw or $bdlw or download error - will retry later\n";
+ print "No Entry found from $bdtw or $bdlw or download error - ";
+ if($#ARGV >= 0 && $ARGV[0] eq 'last') {
+ print "giving up, manual import necessary!!!\n";
+ } else {
+ print "will retry later\n";
+ }
exit 1;
}