mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2025-07-23 21:31:42 +02:00
Merge branch 'main' into dev
This commit is contained in:
@@ -31,15 +31,6 @@ else
|
||||
echo "Docker installed."
|
||||
fi
|
||||
|
||||
# check if docker-compose is installed and available
|
||||
if ! docker-compose --version; then
|
||||
echo "Docker-compose not installed!"
|
||||
echo -n "Stopped."
|
||||
exit
|
||||
else
|
||||
echo "Docker-compose installed."
|
||||
fi
|
||||
|
||||
# check if npm is installed and available
|
||||
if ! npm --version; then
|
||||
echo "NPM not installed!"
|
||||
|
@@ -16,17 +16,24 @@ while (<IN>) {
|
||||
}
|
||||
}
|
||||
close IN;
|
||||
my $fail = 0;
|
||||
|
||||
for my $code (@modules) {
|
||||
my ( undef, $library ) = split( / /, $code ); # get the module name
|
||||
$library =~ s/;//; # clean up the name
|
||||
eval $code;
|
||||
if ($@) {
|
||||
warn "couldn't load $library: $@", "\n";
|
||||
} else {
|
||||
print "$library looks ok\n";
|
||||
$fail = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if ($fail) {
|
||||
exit 0;
|
||||
} else {
|
||||
exit 1;
|
||||
}
|
||||
|
||||
sub help
|
||||
{
|
||||
print <<"END";
|
||||
|
Reference in New Issue
Block a user