mirror of
				https://github.com/appleboy/scp-action.git
				synced 2025-10-31 16:13:47 +00:00 
			
		
		
		
	Update entrypoint.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									775954b583
								
							
						
					
					
						commit
						9b43957835
					
				| @ -39,11 +39,11 @@ if [[ "${INPUT_CURL_INSECURE}" == 'true' ]]; then | ||||
|   INSECURE_OPTION="--insecure" | ||||
| fi | ||||
| 
 | ||||
| if [[ ! -f "${TARGET}" ]]; then | ||||
| if [[ ! -x "${TARGET}" ]]; then | ||||
|   curl -fsSL --retry 5 --keepalive-time 2 ${INSECURE_OPTION} "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o "${TARGET}" | ||||
|   chmod +x "${TARGET}" | ||||
| else | ||||
|   echo "Binary ${CLIENT_BINARY} already exists, skipping download." | ||||
|   echo "Binary ${CLIENT_BINARY} already exists and is executable, skipping download." | ||||
| fi | ||||
| 
 | ||||
| echo "======= CLI Version Information =======" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user