From b5faa209f22ce59fa13b16e59aa391839e35a458 Mon Sep 17 00:00:00 2001 From: lw-everestlinux Date: Sat, 23 Jul 2022 16:44:30 -0400 Subject: [PATCH] v2.2.1 - Added new option: --showDebugInfo --- scripts/glacier | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/scripts/glacier b/scripts/glacier index 2de4564..a6bbb4e 100644 --- a/scripts/glacier +++ b/scripts/glacier @@ -237,6 +237,39 @@ while [[ $# -gt 0 ]]; do printf "\033[1;32m [ $check ] \033[m Cache cleared.\n" exit 0 ;; + --showDebugInfo) + printf "Glacier v2.2\n" + printf "Checking for viable download backend..." + whereis wget + whereis curl + whereis aria2c + printf "Checking which download backend is in use..." + echo $GLACIER_DOWNLOAD_BACKEND + printf "Checking if all Glacier directories and files are present..." + ls /etc | grep glacier + ls /etc/glacier + whereis make.conf + printf "Any missing files above, especially make.conf, will cause Glavier to behave abnormally." + printf "Checking that unicode symbols display properly..." + printf "$check" + printf "$error" + printf "$warning" + printf "$question" + printf "$red This is a test.$reset" + printf "$green This is a test.$reset" + printf "$yellow This is a test.$reset" + printf "$blue This is a test.$reset" + printf "Ensuring repositories are correct..." + echo $GREPO1 + echo $GREPO2 + echo $GREPO3 + echo $GREPO4 + echo $GREPO5 + echo $GREPO6 + echo $GREPO7 + echo $GREPO8 + printf "Debug info has been gathered." + printf "If you wish to save this information to a file, run 'glacier --showDebugInfo > glacier.debug'." -*|--*) printf "$red [ $error ]$reset Unknown option, use 'glacier -h' to see usage.\n" exit 1 @@ -248,4 +281,4 @@ while [[ $# -gt 0 ]]; do esac done -printf "$red [ $error ]$reset Unknown option, use 'glacier -h' to see usage.\n" \ No newline at end of file +printf "$red [ $error ]$reset Unknown option, use 'glacier -h' to see usage.\n"