Skip to content

Commit 09ea39f

Browse files
committed
Fix checks return code of which update-crypto-policies and adds section for crypto policy
1 parent d559e31 commit 09ea39f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

osg-system-profiler

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,12 @@ dump_file "/etc/hosts"
185185
run_cmd df --human-readable --print-type
186186
run_cmd free
187187

188-
version=$(grep -E '^(VERSION)=' /etc/os-release | cut -d '"' -f 2)
189188

190-
if [[ $version == 8* || $version == 9* ]]; then
191-
echo "Crypto Policy is: `update-crypto-policies --show`"
189+
if which update-crypto-policies &>/dev/null; then
190+
echo "***** Crypto Policy"
191+
update-crypto-policies --show
192192
else
193-
echo "Crypto Policy is not available"
194-
193+
echo "***** Crypto Binary not found..."
195194
fi
196195

197196
dump_file "/proc/cpuinfo"

0 commit comments

Comments
 (0)