Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a8b0d5

Browse files
chfastaxic
authored andcommitted
Fix install_deps.sh for Debian without lsb_release
1 parent 6512bfb commit 9a8b0d5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

scripts/install_deps.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,12 @@ case $(uname -s) in
168168
# Debian
169169
#------------------------------------------------------------------------------
170170

171-
Debian)
171+
Debian*)
172172
#Debian
173+
. /etc/os-release
173174
install_z3=""
174-
case $(lsb_release -cs) in
175-
wheezy)
175+
case $VERSION_ID in
176+
7)
176177
#wheezy
177178
echo "Installing solidity dependencies on Debian Wheezy (7.x)."
178179
echo "ERROR - 'install_deps.sh' doesn't have Debian Wheezy support yet."
@@ -182,16 +183,16 @@ case $(uname -s) in
182183
echo "See also https://github.com/ethereum/webthree-umbrella/issues/495 where we are working through Alpine support."
183184
exit 1
184185
;;
185-
jessie)
186+
8)
186187
#jessie
187188
echo "Installing solidity dependencies on Debian Jesse (8.x)."
188189
;;
189-
stretch)
190+
9)
190191
#stretch
191192
echo "Installing solidity dependencies on Debian Stretch (9.x)."
192193
install_z3="libz3-dev"
193194
;;
194-
buster)
195+
10)
195196
#buster
196197
echo "Installing solidity dependencies on Debian Buster (10.x)."
197198
install_z3="libz3-dev"

0 commit comments

Comments
 (0)