forked from ampinzonv/biobash
-
Notifications
You must be signed in to change notification settings - Fork 2
/
installbiobash
executable file
·63 lines (42 loc) · 1.17 KB
/
installbiobash
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
default="/usr/local/bin"
echo "
#
BIOBASH INSTALLATION
Bioinformatics and Systems Biology Laboratory
Institute for Genetics
National University of Colombia
#
"
failure=" == WARNING! Unable to install BIOBASH =="
echo "Hit ENTER to use the default installation directory ($default) or provide a
valid installation path below:"
read -p " > " dir
if [ -z "$dir" ]; then
installDir=$default
else
installDir=$dir
fi
# Does it exist?
if [ -d "$installDir" ];then
# Is it writable?
if [ -w "$installDir" ];then
echo "Installing to: $installDir"
cp ./source/*bb_* $installDir
#make sure permission are correctly set for all scripts
chmod +x ${installDir}/bb_*
echo "Installation complete. Thank you for installing BIOBASH
"
else
echo $failure
echo " "
echo "$installDir is not writable.Please make sure you have write access."
echo " "
fi
else
echo $failure
echo " "
echo " The directory you just typed ($installDir) does not exist."
echo " Please make sure route is correct"
echo " "
fi