vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / applications / office / atlassian-cli / wrapper.sh
blob80b60dbc468cadf01e79abcea8907cc52b240be6
1 #!/bin/bash
3 tool=@tool@
4 user=ATLASSIAN_${tool^^}_USER
5 host=ATLASSIAN_${tool^^}_HOST
6 pass=ATLASSIAN_${tool^^}_PASS
8 [ -f ~/.atlassian-cli ] && source ~/.atlassian-cli
9 if [ x = ${!user-x} ] || [ x = ${!host-x} ] || [ x = ${!pass-x} ]
10 then
11 >&2 echo please define $user, $host, and $pass in '~/.atlassian-cli'
12 exit 1
15 @jre@/bin/java \
16 -jar @out@/share/java/@tool@-cli-* \
17 --server "${!host}" \
18 --user "${!user}" \
19 --password "${!pass}" \
20 "$@"