forked from ungleich-public/cdist
		
	quote arguments
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								9a3d9334d5
							
						
					
				
			
			
				commit
				
					
						721119a34f
					
				
			
		
					 1 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
					@ -7,8 +7,8 @@ debug() {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fdisk_command() {
 | 
					fdisk_command() {
 | 
				
			||||||
   local device=$1
 | 
					   local device="$1"
 | 
				
			||||||
   local cmd=$2
 | 
					   local cmd="$2"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   debug fdisk_command "running fdisk command '${cmd}' on device ${device}"
 | 
					   debug fdisk_command "running fdisk command '${cmd}' on device ${device}"
 | 
				
			||||||
   echo -en "${cmd}\nw\n" | fdisk -c -u "$device"
 | 
					   echo -en "${cmd}\nw\n" | fdisk -c -u "$device"
 | 
				
			||||||
| 
						 | 
					@ -24,11 +24,11 @@ create_disklabel() {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
create_partition() {
 | 
					create_partition() {
 | 
				
			||||||
  local device=$1
 | 
					  local device="$1"
 | 
				
			||||||
  local minor=$2
 | 
					  local minor="$2"
 | 
				
			||||||
  local size=$3
 | 
					  local size="$3"
 | 
				
			||||||
  local type=$4
 | 
					  local type="$4"
 | 
				
			||||||
  local primary_count=$5
 | 
					  local primary_count="$5"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [ "$type" = "extended" -o "$type" = "5" ]; then
 | 
					  if [ "$type" = "extended" -o "$type" = "5" ]; then
 | 
				
			||||||
    # Extended partition
 | 
					    # Extended partition
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue