This file contains 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
#!/bin/bash | |
# Policy IDs or custom trigger names | |
# Bash arrays are specified like the provided example; surround custom triggers with | |
# quotes, and leave policy ids as "bare" integers | |
POLICIES=( "custom" "triggers" 523 32 ) | |
for i in "${POLICIES[@]}"; do | |
# test if array element is an integer, ie. a policy id | |
if [ "$i" -eq "$i" ] 2>/dev/null |