diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index c1b1725cc..d37ebdb19 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -21,12 +21,12 @@ use File::Path; use Socket; use strict; use Symbol; -my $sha1support = eval { - require Digest::SHA1; - 1; -}; +my $sha1support; if ( -f "/etc/debian_version" ){ - $sha1support = eval {require Digest::SHA; 1;} + $sha1support = eval {require Digest::SHA; 1;}; +} +else { + $sha1support = eval { require Digest::SHA1; 1;}; } use IPC::Open3; use IO::Select;