seems like there was a typo in these from the beginning. also fixes the wrong function name for proxmox-file-restore completion Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
		
			
				
	
	
		
			14 lines
		
	
	
		
			379 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			379 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#compdef _proxmox-tape() proxmox-tape
 | 
						|
 | 
						|
function _proxmox-tape() {
 | 
						|
    local cwords line point cmd curr prev
 | 
						|
    cwords=${#words[@]}
 | 
						|
    line=$words
 | 
						|
    point=${#line}
 | 
						|
    cmd=${words[1]}
 | 
						|
    curr=${words[cwords]}
 | 
						|
    prev=${words[cwords-1]}
 | 
						|
    compadd -- $(COMP_CWORD="$cwords" COMP_LINE="$line" COMP_POINT="$point" \
 | 
						|
        proxmox-tape bashcomplete "$cmd" "$curr" "$prev")
 | 
						|
}
 |