-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·36 lines (30 loc) · 780 Bytes
/
install
File metadata and controls
executable file
·36 lines (30 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
set -e
echo Creating ~/.ticket directory for cache...
[ -d ~/.ticket ] || mkdir ~/.ticket -m 700
echo Done.
cd `dirname $0`
echo
if [ -f ticket.conf ]; then
echo ticket.conf already exists, update manually if needed
else
echo Initializing new ticket.conf from ticket.conf.example
cp ticket.conf{.example,}
fi
echo
echo Installing perl dependencies...
PERL5LIB= cpanm -n --installdeps . -l .
echo Done.
echo
echo Checking git and curl...
which curl >/dev/null
which git >/dev/null
echo All done.
echo
echo 'Add following line to ~/.bashrc or ~/.bash_login or you know best where:'
echo 'export PATH=$PATH:'`pwd`/scripts
if [ ! -f ticket.conf ]; then
echo """
Optional, but recommended:
Update `pwd`/ticket.conf with your JIRA username and password"""
fi