forked from ungleich-public/cdist
		
	Merge branch 'fix-file-stat-osx' of https://github.com/mhutter/cdist
This commit is contained in:
		
				commit
				
					
						efb2c4a163
					
				
			
		
					 3 changed files with 27 additions and 2 deletions
				
			
		| 
						 | 
					@ -25,7 +25,7 @@ destination="/$__object_id"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
os=$("$__explorer/os")
 | 
					os=$("$__explorer/os")
 | 
				
			||||||
case "$os" in
 | 
					case "$os" in
 | 
				
			||||||
   "freebsd")
 | 
					   "freebsd"|"openbsd")
 | 
				
			||||||
      # FIXME: should be something like this based on man page, but can not test
 | 
					      # FIXME: should be something like this based on man page, but can not test
 | 
				
			||||||
      stat -f "type: %ST
 | 
					      stat -f "type: %ST
 | 
				
			||||||
owner: %Du %Su
 | 
					owner: %Du %Su
 | 
				
			||||||
| 
						 | 
					@ -33,6 +33,15 @@ group: %Dg %Sg
 | 
				
			||||||
mode: %Op %Sp
 | 
					mode: %Op %Sp
 | 
				
			||||||
size: %Dz
 | 
					size: %Dz
 | 
				
			||||||
links: %Dl
 | 
					links: %Dl
 | 
				
			||||||
 | 
					" "$destination"
 | 
				
			||||||
 | 
					   ;;
 | 
				
			||||||
 | 
					    "macosx")
 | 
				
			||||||
 | 
					       stat -f "type: %HT
 | 
				
			||||||
 | 
					 owner: %Du %Su
 | 
				
			||||||
 | 
					 group: %Dg %Sg
 | 
				
			||||||
 | 
					 mode: %Lp %Sp
 | 
				
			||||||
 | 
					 size: %Dz
 | 
				
			||||||
 | 
					 links: %Dl
 | 
				
			||||||
 " "$destination"
 | 
					 " "$destination"
 | 
				
			||||||
    ;;
 | 
					    ;;
 | 
				
			||||||
   *)
 | 
					   *)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,12 +25,19 @@ destination="/$__object_id"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
os=$("$__explorer/os")
 | 
					os=$("$__explorer/os")
 | 
				
			||||||
case "$os" in
 | 
					case "$os" in
 | 
				
			||||||
   "freebsd")
 | 
					   "freebsd"|"openbsd")
 | 
				
			||||||
      # FIXME: should be something like this based on man page, but can not test
 | 
					      # FIXME: should be something like this based on man page, but can not test
 | 
				
			||||||
      stat -f "type: %ST
 | 
					      stat -f "type: %ST
 | 
				
			||||||
owner: %Du %Su
 | 
					owner: %Du %Su
 | 
				
			||||||
group: %Dg %Sg
 | 
					group: %Dg %Sg
 | 
				
			||||||
mode: %Op %Sp
 | 
					mode: %Op %Sp
 | 
				
			||||||
 | 
					" "$destination"
 | 
				
			||||||
 | 
					   ;;
 | 
				
			||||||
 | 
					    "macosx")
 | 
				
			||||||
 | 
					       stat -f "type: %HT
 | 
				
			||||||
 | 
					 owner: %Du %Su
 | 
				
			||||||
 | 
					 group: %Dg %Sg
 | 
				
			||||||
 | 
					 mode: %Lp %Sp
 | 
				
			||||||
 " "$destination"
 | 
					 " "$destination"
 | 
				
			||||||
    ;;
 | 
					    ;;
 | 
				
			||||||
   *)
 | 
					   *)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -33,6 +33,15 @@ group: %Dg %Sg
 | 
				
			||||||
mode: %Op %Sp
 | 
					mode: %Op %Sp
 | 
				
			||||||
size: %Dz
 | 
					size: %Dz
 | 
				
			||||||
links: %Dl
 | 
					links: %Dl
 | 
				
			||||||
 | 
					" "$destination"
 | 
				
			||||||
 | 
					   ;;
 | 
				
			||||||
 | 
					   "macosx")
 | 
				
			||||||
 | 
					     stat -f "type: %HT
 | 
				
			||||||
 | 
					owner: %Du %Su
 | 
				
			||||||
 | 
					group: %Dg %Sg
 | 
				
			||||||
 | 
					mode: %Lp %Sp
 | 
				
			||||||
 | 
					size: %Dz
 | 
				
			||||||
 | 
					links: %Dl
 | 
				
			||||||
" "$destination"
 | 
					" "$destination"
 | 
				
			||||||
   ;;
 | 
					   ;;
 | 
				
			||||||
   *)
 | 
					   *)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue