v2.2.1 - Added new option: --showDebugInfo
This commit is contained in:
parent
1682faa871
commit
b5faa209f2
@ -237,6 +237,39 @@ while [[ $# -gt 0 ]]; do
|
|||||||
printf "\033[1;32m [ $check ] \033[m Cache cleared.\n"
|
printf "\033[1;32m [ $check ] \033[m Cache cleared.\n"
|
||||||
exit 0
|
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"
|
printf "$red [ $error ]$reset Unknown option, use 'glacier -h' to see usage.\n"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user