qsgen2: More cleaning up tabs and spaces
This commit is contained in:
		
							
								
								
									
										12
									
								
								qsgen2
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								qsgen2
									
									
									
									
									
								
							@@ -161,6 +161,7 @@ function _msg() {
 | 
				
			|||||||
        echo "${2}"
 | 
					        echo "${2}"
 | 
				
			||||||
    ;;
 | 
					    ;;
 | 
				
			||||||
  esac
 | 
					  esac
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
case ${1} in
 | 
					case ${1} in
 | 
				
			||||||
@@ -220,6 +221,7 @@ export blogdate=$(strftime "%a-%Y-%b-%d")
 | 
				
			|||||||
# Let's create arrays of all the files we'll be working on
 | 
					# Let's create arrays of all the files we'll be working on
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function _list_pages() {
 | 
					function _list_pages() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [[ ${globaldebug} == "true" ]]; then
 | 
					  if [[ ${globaldebug} == "true" ]]; then
 | 
				
			||||||
    local debug=true
 | 
					    local debug=true
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
@@ -248,9 +250,11 @@ function _list_pages() {
 | 
				
			|||||||
      pages_file_array+=("$file")
 | 
					      pages_file_array+=("$file")
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function _list_blogs() {
 | 
					function _list_blogs() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [[ ${globaldebug} == "true" ]]; then
 | 
					  if [[ ${globaldebug} == "true" ]]; then
 | 
				
			||||||
    local debug=true
 | 
					    local debug=true
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
@@ -274,16 +278,19 @@ function _list_blogs() {
 | 
				
			|||||||
    export no_blogs_found=true
 | 
					    export no_blogs_found=true
 | 
				
			||||||
    return
 | 
					    return
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
        for file in "${blog_files[@]}"; do
 | 
					    for file in "${blog_files[@]}"
 | 
				
			||||||
 | 
					      do
 | 
				
			||||||
        if ${debug}; then _msg debug "_list_blogs: Adding file to array: $file"; fi
 | 
					        if ${debug}; then _msg debug "_list_blogs: Adding file to array: $file"; fi
 | 
				
			||||||
          blogs_file_array+=("$file")
 | 
					          blogs_file_array+=("$file")
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# BLOG CACHE
 | 
					# BLOG CACHE
 | 
				
			||||||
function _blog_cache() {
 | 
					function _blog_cache() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [[ ${globaldebug} == "true" ]]; then
 | 
					  if [[ ${globaldebug} == "true" ]]; then
 | 
				
			||||||
    local debug=true
 | 
					    local debug=true
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
@@ -332,12 +339,14 @@ function _blog_cache() {
 | 
				
			|||||||
  for name in "${(@k)blog_cache}"; do
 | 
					  for name in "${(@k)blog_cache}"; do
 | 
				
			||||||
    echo "$name:${blog_cache[$name]}" >> "$blog_cache_file"
 | 
					    echo "$name:${blog_cache[$name]}" >> "$blog_cache_file"
 | 
				
			||||||
  done
 | 
					  done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# PAGES CACHE
 | 
					# PAGES CACHE
 | 
				
			||||||
# Returns the array pages_array()
 | 
					# Returns the array pages_array()
 | 
				
			||||||
function _pages_cache() {
 | 
					function _pages_cache() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [[ ${globaldebug} == "true" ]]; then
 | 
					  if [[ ${globaldebug} == "true" ]]; then
 | 
				
			||||||
    local debug=true
 | 
					    local debug=true
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
@@ -387,6 +396,7 @@ function _pages_cache() {
 | 
				
			|||||||
  for name in "${(@k)pages_cache}"; do
 | 
					  for name in "${(@k)pages_cache}"; do
 | 
				
			||||||
    echo "$name:${pages_cache[$name]}" >> "$pages_cache_file"
 | 
					    echo "$name:${pages_cache[$name]}" >> "$pages_cache_file"
 | 
				
			||||||
  done
 | 
					  done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function _last_updated() {
 | 
					function _last_updated() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user