Created
          October 24, 2025 14:49 
        
      - 
      
- 
        Save Hayao0819/d946aa1e2b30b485507f2b0224141986 to your computer and use it in GitHub Desktop. 
    SGXSDKのバージョンを取得します。
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env bash | |
| SGX_SDK="${SGX_SDK-"/opt/intel/sgxsdk"}" | |
| if [[ -e "$SGX_SDK/environment" ]]; then | |
| # shellcheck source=/dev/null | |
| source "$SGX_SDK/environment" | |
| fi | |
| if [[ -z "${SGX_SDK-""}" ]]; then | |
| echo "SGX_SDK is not set. Please set SGX_SDK to the Intel SGX SDK path." >&2 | |
| exit 1 | |
| fi | |
| find "$SGX_SDK/lib64" -name "*.so" -type f -print0 | | |
| xargs -0 -L1 strings | | |
| grep SGX | grep -v SGX_ERROR | grep VERSION | | |
| rev | cut -d "_" -f 1 | rev | sort | uniq | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment