Skip to content

Commit d74ff93

Browse files
authored
Fix detection of Debian 10
The Install script fails to detect Debian version 10, because grep only get one number which is 1 not 10, so using grep -o "[0-9]\{1,2\}" should fix that problem.
1 parent dd7b4c7 commit d74ff93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/hst-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if [ -e "/etc/os-release" ]; then
4949
exit 1
5050
fi
5151
elif [ "$type" = "debian" ]; then
52-
release=$(cat /etc/debian_version|grep -o [0-9]|head -n1)
52+
release=$(cat /etc/debian_version|grep -o "[0-9]\{1,2\}"|head -n1)
5353
VERSION='debian'
5454
fi
5555
else

0 commit comments

Comments
 (0)