15 lines
269 B
Bash
Executable File
15 lines
269 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Make sure a config file was provided
|
|
if [ $# -lt 1 ]; then
|
|
echo "Usage: $0 <config file>"
|
|
exit
|
|
fi
|
|
|
|
# Attempt to parse the config file
|
|
INPUT_FILE=$1
|
|
echo "Parsing config info from $INPUT_FILE..."
|
|
|
|
TEST=$(jq '.outputs[]' $INPUT_FILE)
|
|
|
|
echo $TEST[0] |