forked from ungleich-public/cdist
		
	Fix post-shellcheck bug.
This commit is contained in:
		
					parent
					
						
							
								8c03518962
							
						
					
				
			
			
				commit
				
					
						6895ad0207
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -59,7 +59,7 @@ echo changed >> "$__messages_out"
 | 
			
		|||
# Use the good old way to set the hostname even on machines running systemd.
 | 
			
		||||
case "$os" in
 | 
			
		||||
    archlinux|debian|ubuntu|devuan|centos|coreos)
 | 
			
		||||
        printf "printf '%s\\n' '$name_should' > /etc/hostname\\n"
 | 
			
		||||
        printf "printf '%%s\\\\n' '$name_should' > /etc/hostname\\n"
 | 
			
		||||
        echo "hostname -F /etc/hostname"
 | 
			
		||||
    ;;
 | 
			
		||||
    freebsd|openbsd)
 | 
			
		||||
| 
						 | 
				
			
			@ -67,7 +67,7 @@ case "$os" in
 | 
			
		|||
    ;;
 | 
			
		||||
    suse)
 | 
			
		||||
        echo "hostname '$name_should'"
 | 
			
		||||
        printf "printf '%s\\n' '$name_should' > /etc/HOSTNAME\\n"
 | 
			
		||||
        printf "printf '%%s\\\\n' '$name_should' > /etc/HOSTNAME\\n"
 | 
			
		||||
    ;;
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue