forked from ungleich-public/cdist
		
	always chdir to git dir before getting version
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								7b3cee877d
							
						
					
				
			
			
				commit
				
					
						f3eb9368cd
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -22,8 +22,6 @@
 | 
				
			||||||
# Fail if something bogus is going on and export all variables
 | 
					# Fail if something bogus is going on and export all variables
 | 
				
			||||||
set -u
 | 
					set -u
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__cdist_version="$(git describe)"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
################################################################################
 | 
					################################################################################
 | 
				
			||||||
# cconf standard vars prefixed with cdist
 | 
					# cconf standard vars prefixed with cdist
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -33,6 +31,8 @@ __cdist_abs_mydir="$(cd "$__cdist_mydir" && pwd -P)"
 | 
				
			||||||
__cdist_myname=${0##*/};
 | 
					__cdist_myname=${0##*/};
 | 
				
			||||||
__cdist_abs_myname="$__cdist_abs_mydir/$__cdist_myname"
 | 
					__cdist_abs_myname="$__cdist_abs_mydir/$__cdist_myname"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					__cdist_version="$(cd "$__cdist_abs_mydir/.." && git describe)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
################################################################################
 | 
					################################################################################
 | 
				
			||||||
# Names / Constants
 | 
					# Names / Constants
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue