leflamm / afpre

CLI for the AWS Federation Proxy
Apache License 2.0
19 stars 12 forks source link

pass command to be run in afpre and return immediatly #32

Closed leflamm closed 7 years ago

leflamm commented 7 years ago

note to self

#!/bin/bash

ARGS="${@}"

egrep -q "^[^-]*$|\s[^-]*$" <<< $ARGS

echo $?

echo command passed was: $(egrep -o "^[^-]*$|\s[^-]*$" <<< $ARGS)