Minor updates to output formatting in setup.sh
This commit is contained in:
		
							parent
							
								
									70be386c85
								
							
						
					
					
						commit
						ea34b63123
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		
							
								
								
									
										10
									
								
								setup.sh
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								setup.sh
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -37,14 +37,16 @@ do
 | 
			
		|||
    spaces=''
 | 
			
		||||
    for (( i=0; $i < $filler; i++ )); do spaces="$spaces "; done
 | 
			
		||||
 | 
			
		||||
    echo -n "  $dest$spaces"
 | 
			
		||||
    if [[ $action = 'linked' ]]; then
 | 
			
		||||
    echo -n "  $dest"
 | 
			
		||||
    if [[ $action == 'linked' ]]; then
 | 
			
		||||
        ln -fs "$dfdir/$dotfile" "$dest"
 | 
			
		||||
        action="%F{green}$action%f"
 | 
			
		||||
    elif [[ $action == 'skipped' ]]; then
 | 
			
		||||
        action="%F{yellow}$action%f"
 | 
			
		||||
    else
 | 
			
		||||
        action="%F{green}$action%f"
 | 
			
		||||
        action="%F{red}red%f"
 | 
			
		||||
    fi
 | 
			
		||||
    print -P $action
 | 
			
		||||
    print -P "$spaces$action"
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
echo "touch $HOME/.hushlogin"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue