mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00:00
21 lines
471 B
Bash
21 lines
471 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
tool=@tool@
|
||
|
user=ATLASSIAN_${tool^^}_USER
|
||
|
host=ATLASSIAN_${tool^^}_HOST
|
||
|
pass=ATLASSIAN_${tool^^}_PASS
|
||
|
|
||
|
[ -f ~/.atlassian-cli ] && source ~/.atlassian-cli
|
||
|
if [ x = ${!user-x} ] || [ x = ${!host-x} ] || [ x = ${!pass-x} ]
|
||
|
then
|
||
|
>&2 echo please define $user, $host, and $pass in '~/.atlassian-cli'
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
@jre@/bin/java \
|
||
|
-jar @out@/share/java/@tool@-cli-* \
|
||
|
--server "${!host}" \
|
||
|
--user "${!user}" \
|
||
|
--password "${!pass}" \
|
||
|
"$@"
|