Daniel Gibbs 1 سال پیش
والد
کامیت
463674c382
2فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 5 5
      lgsm/modules/command_dev_detect_glibc.sh
  2. 2 2
      lgsm/modules/command_dev_detect_ldd.sh

+ 5 - 5
lgsm/modules/command_dev_detect_glibc.sh

@@ -56,18 +56,18 @@ for glibc_check_var in "${glibc_check_dir_array[@]}"; do
 			done
 			done
 		echo -e ""
 		echo -e ""
 		echo -e ""
 		echo -e ""
-		echo -e "${glibc_check_name} glibc Requirements"
+		fn_print_nl "${bold}${lightyellow}${glibc_check_name} glibc Requirements"
 		fn_messages_separator
 		fn_messages_separator
 		if [ -f "${tmpdir}/detect_glibc_files_${glibc_check_var}.tmp" ]; then
 		if [ -f "${tmpdir}/detect_glibc_files_${glibc_check_var}.tmp" ]; then
 			echo -e "Required glibc"
 			echo -e "Required glibc"
-			cat "${tmpdir}/detect_glibc_${glibc_check_var}.tmp" | sort | uniq | sort -r --version-sort | head -1 | tee -a "${tmpdir}/detect_glibc_highest.tmp"
+			cat "${tmpdir}/detect_glibc_${glibc_check_var}.tmp" | sort | uniq | sort -r --version-sort | head -1 | sed 's/)$//' | tee -a "${tmpdir}/detect_glibc_highest.tmp"
 			echo -e ""
 			echo -e ""
 			echo -e "Files requiring GLIBC"
 			echo -e "Files requiring GLIBC"
 			echo -e "Highest verion required: filename"
 			echo -e "Highest verion required: filename"
 			cat "${tmpdir}/detect_glibc_files_${glibc_check_var}.tmp"
 			cat "${tmpdir}/detect_glibc_files_${glibc_check_var}.tmp"
 			echo -e ""
 			echo -e ""
 			echo -e "All required GLIBC versions"
 			echo -e "All required GLIBC versions"
-			cat "${tmpdir}/detect_glibc_${glibc_check_var}.tmp" | sort | uniq | sort -r --version-sort
+			cat "${tmpdir}/detect_glibc_${glibc_check_var}.tmp" | sort | uniq | sort -r --version-sort | sed 's/)$//'
 			rm -f "${tmpdir:?}/detect_glibc_${glibc_check_var}.tmp"
 			rm -f "${tmpdir:?}/detect_glibc_${glibc_check_var}.tmp"
 			rm -f "${tmpdir:?}/detect_glibc_files_${glibc_check_var}.tmp"
 			rm -f "${tmpdir:?}/detect_glibc_files_${glibc_check_var}.tmp"
 		else
 		else
@@ -78,10 +78,10 @@ for glibc_check_var in "${glibc_check_dir_array[@]}"; do
 	fi
 	fi
 done
 done
 echo -e ""
 echo -e ""
-echo -e "Final glibc Requirement"
+fn_print_nl "${bold}${lightyellow}Final glibc Requirement"
 fn_messages_separator
 fn_messages_separator
 if [ -f "${tmpdir}/detect_glibc_highest.tmp" ]; then
 if [ -f "${tmpdir}/detect_glibc_highest.tmp" ]; then
-	cat "${tmpdir}/detect_glibc_highest.tmp" | sort | uniq | sort -r --version-sort | head -1
+	cat "${tmpdir}/detect_glibc_highest.tmp" | sort | uniq | sort -r --version-sort | head -1 | sed 's/)$//'
 	rm -f "${tmpdir:?}/detect_glibc_highest.tmp"
 	rm -f "${tmpdir:?}/detect_glibc_highest.tmp"
 else
 else
 	fn_print_information_nl "glibc is not required"
 	fn_print_information_nl "glibc is not required"

+ 2 - 2
lgsm/modules/command_dev_detect_ldd.sh

@@ -44,12 +44,12 @@ find "${serverfiles}" -type f -print0 \
 	done
 	done
 echo -e ""
 echo -e ""
 echo -e ""
 echo -e ""
-echo -e "All"
+fn_print_nl "${bold}${lightyellow}All${default}"
 fn_messages_separator
 fn_messages_separator
 cat "${tmpdir}/detect_ldd.tmp"
 cat "${tmpdir}/detect_ldd.tmp"
 
 
 echo -e ""
 echo -e ""
-echo -e "Not Found"
+fn_print_nl "${bold}${lightyellow}Not Found${default}"
 fn_messages_separator
 fn_messages_separator
 cat "${tmpdir}/detect_ldd_not_found.tmp"
 cat "${tmpdir}/detect_ldd_not_found.tmp"