You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: easy_setup/install_ext_software/phobos.sh
+3-2
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@
17
17
### Housekeeping
18
18
19
19
shopt -s nocasematch # making comparisons case-insensitive
20
+
set -euo pipefail # exit on errors and undefined vars
20
21
21
22
PARENT_PATH=$(cd"$(dirname "${BASH_SOURCE[0]}")";cd .. ;pwd -P )# other files are located one directory above
22
23
."$PARENT_PATH/configTRAL_path.cfg"|| { # provide paths from config file
@@ -31,7 +32,7 @@ PARENT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; cd .. ; pwd -P ) # other fi
31
32
32
33
if [ !-x"$(command -v phobos_64_libstdc++6)" ];then# test if not already in directory
33
34
34
-
if [[ "$ACCEPT_ALL"="yes" ]];then
35
+
if [[ "${ACCEPT_ALL:-no}"="yes" ]];then
35
36
ma=a
36
37
else
37
38
{
@@ -56,7 +57,7 @@ if [ ! -x "$(command -v phobos_64_libstdc++6)" ]; then # test if not already in
56
57
[Aa]* )
57
58
echo -e "\nDo you confirm to the authors copyright (Copyright (c) Christoph Mayer 2006-2017)?\n This program is for academic and non-commercial usage only."
58
59
59
-
if [[ "$ACCEPT_ALL"="yes" ]];then
60
+
if [[ "${ACCEPT_ALL:-no}"="yes" ]];then
60
61
yn=y
61
62
elseread -p "Would you like to download the phobos-v3.3.12-linux version? yes(y) or no (n):" yn
Copy file name to clipboardexpand all lines: easy_setup/setupTRAL.sh
+3-2
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
######################
11
11
12
12
shopt -s nocasematch # making comparisons case-insensitive
13
+
set -euo pipefail # exit on errors and undefined vars
13
14
14
15
if [[ !"$1"=~ ^(setup|pip)$ ]];then
15
16
echo -e "\nPlease provide as argument how you want to install TRAL with setup.py \"setup\" or \"pip\").\n"
@@ -61,7 +62,7 @@ if [[ $1 == "setup" ]]; then
61
62
# if the tral directory is not already downloaded, it has to be cloned from github
62
63
echo -e "\nPlease clone the TRAL repository from github.\n"
63
64
64
-
if [[ "$ACCEPT_ALL"="yes" ]];then
65
+
if [[ "${ACCEPT_ALL:-no}"="yes" ]];then
65
66
yn=y
66
67
elseread -p "Do you want to clone the TRAL repository from github in "$TRAL_PATH"? yes(y) or no (n):" yn
67
68
fi
@@ -126,7 +127,7 @@ fi
126
127
if [ !-d"$TRAL_CONF/data/pvalue" ];then
127
128
echo -e "\nIn order to calculate the p-Value of tandem repeat scores, available p-Value distributions need to be downloaded (2.6Gb) and placed in ~/.tral/data/pvalue."
128
129
129
-
if [[ "$ACCEPT_ALL"="yes" ]];then
130
+
if [[ "${ACCEPT_ALL:-no}"="yes" ]];then
130
131
yn=y
131
132
elseread -p "Would you like to do this? yes(y) or no (n):" yn
0 commit comments