minor changed

This commit is contained in:
Pin
2022-03-30 20:29:16 -04:00
parent 1d4c98b3c0
commit bc681fd5f9
2 changed files with 20 additions and 5 deletions

11
tmp.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
ver=$(bash --version | head -n 1 | awk '{print $4}' | grep -o ".\..")
check_ver=$(echo -e "${ver}\n4.3" | sort -V | head -n 1)
if [[ "${ver}" == "${check_ver}" ]]; then
echo "yes"
else
echo "no"
fi