mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 13:55:25 +01:00 
			
		
		
		
	Use bash-builtin command -v instead of external which
				
					
				
			`command -v` is a bash builtin and is a standardized version of `which`
This commit is contained in:
		| @@ -36,7 +36,7 @@ find_openssl_binary() { | ||||
|           :    # 2. otherwise try openssl in path of testssl.sh | ||||
|      elif test_openssl_suffix ../$RUN_DIR/bin; then | ||||
|           :    # 3. otherwise here, this is supposed to be the standard --platform independent path in the future!!! | ||||
|      elif test_openssl_suffix "$(dirname "$(which openssl)")"; then | ||||
|      elif test_openssl_suffix "$(dirname "$(command -v openssl)")"; then | ||||
|           :    # 5. we tried hard and failed, so now we use the system binaries | ||||
|      fi | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 a1346054
					a1346054