Revamp debugging
This commit is contained in:
		
							parent
							
								
									1c3023b8ff
								
							
						
					
					
						commit
						6e35ea5206
					
				@ -194,6 +194,9 @@ prompt() {
 | 
			
		||||
###############################################################################
 | 
			
		||||
##### This is the core of error handling, make sure there's no error here #####
 | 
			
		||||
 | 
			
		||||
### TODO: return "lockWhiteSur()" back for non functional syntax error handling
 | 
			
		||||
###       and lock dir removal after immediate terminal window closing
 | 
			
		||||
 | 
			
		||||
if [[ -d "${WHITESUR_TMP_DIR}" ]]; then
 | 
			
		||||
  start_animation; sleep 2; stop_animation; echo
 | 
			
		||||
 | 
			
		||||
@ -218,7 +221,7 @@ operation_aborted() {
 | 
			
		||||
  local repo_ver=""
 | 
			
		||||
  local lines=()
 | 
			
		||||
 | 
			
		||||
  if ! repo_ver="$(cd "${REPO_DIR}"; git log -1 --date=format-local:"%FT%T%z" --format="%ad")"; then
 | 
			
		||||
  if ! repo_ver="$(cd "${REPO_DIR}"; git log -1 --date=format-local:"%FT%T%z" --format="%ad" 2> /dev/null)"; then
 | 
			
		||||
    if ! repo_ver="$(date -r "${REPO_DIR}" +"%FT%T%z")"; then
 | 
			
		||||
      repo_ver="unknown"
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
@ -22,6 +22,9 @@ install_theme_deps() {
 | 
			
		||||
    ! has_command xmllint || [[ ! -r "/usr/share/gtk-engines/murrine.xml" ]]; then
 | 
			
		||||
    echo; prompt -w "'glib2.0', 'sassc', 'xmllint', and 'libmurrine' are required for theme installation."
 | 
			
		||||
 | 
			
		||||
    # Be careful of some distro mechanism, some of them use rolling-release
 | 
			
		||||
    # based installation, e.g., Arch Linux
 | 
			
		||||
 | 
			
		||||
    if has_command zypper; then
 | 
			
		||||
      rootify zypper in -y sassc glib2-devel gtk2-engine-murrine libxml2-tools
 | 
			
		||||
    elif has_command apt; then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user