mirror of
				https://github.com/encounter/SDL.git
				synced 2025-10-27 12:10:24 +00:00 
			
		
		
		
	Fixed showrev.sh when using the Bourne shell
This commit is contained in:
		
							parent
							
								
									beab15b09e
								
							
						
					
					
						commit
						05a60c2ea3
					
				| @ -7,7 +7,7 @@ cd $SDL_ROOT | |||||||
| 
 | 
 | ||||||
| if [ -x "$(command -v hg)" ]; then | if [ -x "$(command -v hg)" ]; then | ||||||
|     rev="$(hg parents --template 'hg-{rev}:{node|short}' 2>/dev/null)" |     rev="$(hg parents --template 'hg-{rev}:{node|short}' 2>/dev/null)" | ||||||
|     if [ "$?" == 0 ]; then |     if [ $? = 0 ]; then | ||||||
|         echo $rev |         echo $rev | ||||||
|         exit 0 |         exit 0 | ||||||
|     fi |     fi | ||||||
| @ -15,7 +15,7 @@ fi | |||||||
| 
 | 
 | ||||||
| if [ -x "$(command -v p4)" ]; then | if [ -x "$(command -v p4)" ]; then | ||||||
|     rev="$(p4 changes -m1 ./...\#have 2>/dev/null| awk '{print $2}')" |     rev="$(p4 changes -m1 ./...\#have 2>/dev/null| awk '{print $2}')" | ||||||
|     if [ "$?" == 0 ]; then |     if [ $? = 0 ]; then | ||||||
|         echo $rev |         echo $rev | ||||||
|         exit 0 |         exit 0 | ||||||
|     fi |     fi | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user