added Malcolm
This commit is contained in:
		| @@ -0,0 +1,12 @@ | ||||
| # Copyright (c) 2021 Battelle Energy Alliance, LLC.  All rights reserved. | ||||
|  | ||||
| function in_array() { | ||||
|   local haystack="${1}[@]" | ||||
|   local needle="${2}" | ||||
|   for i in "${!haystack}"; do | ||||
|     if [[ "${i}" == "${needle}" ]]; then | ||||
|       return 0 | ||||
|     fi | ||||
|   done | ||||
|   return 1 | ||||
| } | ||||
		Reference in New Issue
	
	Block a user