You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
511 B
32 lines
511 B
#!/bin/bash
|
|
# eqx-get-project-uuid
|
|
#
|
|
# XXX not real stable way to do this...
|
|
#
|
|
# Get project UUID from a name
|
|
#
|
|
# Usage:
|
|
# eqx-get-project-uuid [name]
|
|
# Example:
|
|
# eqx-get-project-uuid fooproject
|
|
|
|
EQXPROJECT="$1"
|
|
|
|
if [[ $1 == "" ]]
|
|
then \
|
|
echo -e "Need project name, such as:\n"
|
|
eqx-get-project-names
|
|
echo
|
|
exit
|
|
fi
|
|
|
|
# XXX this...
|
|
packet \
|
|
project \
|
|
get \
|
|
--project $EQXPROJECT \
|
|
2>/dev/null | \
|
|
grep -w " $EQXPROJECT " | \
|
|
cut -f 2 -d " "
|
|
|