forked from ungleich-public/cdist
		
	
				commit
				
					
						0cb127822f
					
				
			
		
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -1,3 +1,3 @@
 | 
				
			||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
cd /dev
 | 
					cd /dev || exit 0
 | 
				
			||||||
echo sd? hd? vd?
 | 
					echo sd? hd? vd?
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,7 +32,7 @@ destination_dir="${destination%/*}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
case "$type" in
 | 
					case "$type" in
 | 
				
			||||||
   symbolic)
 | 
					   symbolic)
 | 
				
			||||||
      cd "$destination_dir"
 | 
					      cd "$destination_dir" || exit 1
 | 
				
			||||||
      source_is=$(ls -l "$destination" | sed 's/.*-> //g')
 | 
					      source_is=$(ls -l "$destination" | sed 's/.*-> //g')
 | 
				
			||||||
      if [ -h "$destination" ]; then
 | 
					      if [ -h "$destination" ]; then
 | 
				
			||||||
         # ignore trailing slashes for comparison
 | 
					         # ignore trailing slashes for comparison
 | 
				
			||||||
| 
						 | 
					@ -46,7 +46,7 @@ case "$type" in
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
   ;;
 | 
					   ;;
 | 
				
			||||||
   hard)
 | 
					   hard)
 | 
				
			||||||
      cd "$destination_dir"
 | 
					      cd "$destination_dir" || exit 1
 | 
				
			||||||
      # check source relative to destination_dir
 | 
					      # check source relative to destination_dir
 | 
				
			||||||
      if [ ! -e "$source" ]; then
 | 
					      if [ ! -e "$source" ]; then
 | 
				
			||||||
         echo sourcemissing
 | 
					         echo sourcemissing
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue