summaryrefslogtreecommitdiff
path: root/utils/rhrd-sanity-check
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-12-03 17:27:25 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-12-03 17:27:25 (GMT)
commit4c180691b640ae416239f1bcd375ea513cf5d50b (patch)
tree8a11716b78358e5bdb976db99293f91f30dd0690 /utils/rhrd-sanity-check
parentcb42bb3574fab1e761c6562c60ee3b5e3c8af09d (diff)
some cleanup
Diffstat (limited to 'utils/rhrd-sanity-check')
-rwxr-xr-xutils/rhrd-sanity-check12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/rhrd-sanity-check b/utils/rhrd-sanity-check
index 9507f6b..8faec2e 100755
--- a/utils/rhrd-sanity-check
+++ b/utils/rhrd-sanity-check
@@ -61,7 +61,7 @@ sub check_showids
}
my ($group, $status, $errorstring) = RHRD::rddb::get_show_group($ctx, $showid);
- unless(defined($group)) {
+ unless(defined $group) {
print " showid '" . $showid . "': has no dropbox assigned\n";
$errors++;
} else {
@@ -88,7 +88,7 @@ sub check_logs
}
for my $log (@logs) {
my ($log_exists, $status, $errorstring) = RHRD::rddb::check_log_exists($ctx, $log);
- if(!defined $log_exists) {
+ unless(defined $log_exists) {
print STDERR "$status: $errorstring";
return -1;
}
@@ -98,7 +98,7 @@ sub check_logs
}
(my $log_tab_exists, $status, $errorstring) = RHRD::rddb::check_log_table_exists($ctx, $log);
- if(!defined $log_tab_exists) {
+ unless(defined $log_tab_exists) {
print STDERR "$status: $errorstring";
return -1;
}
@@ -247,19 +247,19 @@ sub check_groups
print "groups:\n";
my ($shows_low_cart, $shows_high_cart, $shows_chunk_size) = RHRD::rddb::get_shows_cart_range($ctx);
- if(!$shows_low_cart) {
+ unless(defined $shows_low_cart) {
print "$shows_high_cart: $shows_chunk_size\n";
return -1;
}
my ($musicpools_low_cart, $musicpools_high_cart, $musicpools_chunk_size) = RHRD::rddb::get_musicpools_cart_range($ctx);
- if(!$musicpools_low_cart) {
+ unless(defined $musicpools_low_cart) {
print "$musicpools_high_cart: $musicpools_chunk_size\n";
return -1;
}
my ($jingles_low_cart, $jingles_high_cart, $jingles_chunk_size) = RHRD::rddb::get_jingles_cart_range($ctx);
- if(!$jingles_low_cart) {
+ unless(defined $jingles_low_cart) {
print "$jingles_high_cart: $jingles_chunk_size\n";
return -1;
}