File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -111,27 +111,30 @@ generate_csv_file()
111
111
112
112
pkg_install ()
113
113
{
114
- if [ $ubuntu -eq 0 ]; then
115
- apt install -y $1
116
- if [ $? -ne 0 ]; then
117
- exit_out " apt install of $1 failed" 1
118
- fi
119
- else
120
- dnf install -y $1
121
- if [ $? -ne 0 ]; then
122
- exit_out " dnf install of $1 failed" 1
114
+ if [ to_no_pkg_install -eq 0 ]; then
115
+ if [ $ubuntu -eq 0 ]; then
116
+ apt install -y $1
117
+ if [ $? -ne 0 ]; then
118
+ exit_out " apt install of $1 failed" 1
119
+ fi
120
+ else
121
+ dnf install -y $1
122
+ if [ $? -ne 0 ]; then
123
+ exit_out " dnf install of $1 failed" 1
124
+ fi
123
125
fi
124
126
fi
125
127
}
126
128
127
129
pip3_install ()
128
130
{
129
- pip3 install $1
130
- if [ $? -ne 0 ]; then
131
- exit_out " pip3 install of $1 failed." 1
131
+ if [ to_no_pkg_install -eq 0 ]; then
132
+ pip3 install $1
133
+ if [ $? -ne 0 ]; then
134
+ exit_out " pip3 install of $1 failed." 1
135
+ fi
132
136
fi
133
137
}
134
-
135
138
#
136
139
# Variables set by general setup.
137
140
#
You can’t perform that action at this time.
0 commit comments