mirror of
				https://kkgithub.com/actions/setup-node.git
				synced 2025-11-04 04:31:55 +08:00 
			
		
		
		
	
		
			
	
	
		
			11 lines
		
	
	
		
			249 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			249 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
								 | 
							
								#!/bin/sh
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								if [ -n "$1" ]; then
							 | 
						||
| 
								 | 
							
								  architecture="$(node -e 'console.log(process.arch)')"
							 | 
						||
| 
								 | 
							
								  if [ -z "$(echo $architecture | grep --fixed-strings $1)" ]; then
							 | 
						||
| 
								 | 
							
								    echo "Unexpected architecture"
							 | 
						||
| 
								 | 
							
								    exit 1
							 | 
						||
| 
								 | 
							
								  fi
							 | 
						||
| 
								 | 
							
								else
							 | 
						||
| 
								 | 
							
								  echo "Skip testing architecture"
							 | 
						||
| 
								 | 
							
								fi
							 |