1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!@bash@/bin/bash echo " Compiliiing ${@}" error () { echo "$1" exit 1 } case "${@}" in ansible-lint*) echo " \-> ansible-lint" shift ansible-lint --profile production --write=all -qq --nocolor ${@} ;; awx*) echo " \-> awx" awx "$@" | filter-ansi ;; *) echo "Nope. Not compiling that. ARGS: ${@}" ;; esac