Skip to content

Commit c6c2f52

Browse files
committed
added missing caret in front of a regex to match only lines starting with ID=
1 parent 84f7d8f commit c6c2f52

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

install.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export INCLUDEOS_SRC=${INCLUDEOS_SRC-`pwd`}
99
SYSTEM=`uname -s`
1010

1111
read_linux_release() {
12-
LINE=`grep "ID=" /etc/os-release`
12+
LINE=`grep "^ID=" /etc/os-release`
1313
echo "${LINE##*=}"
1414
}
1515

@@ -50,8 +50,6 @@ The command sudo was not found. \n"
5050
fi
5151

5252
# check if system is supported at all
53-
echo "Jenkins release: $RELEASE"
54-
cat /etc/os-release
5553
if ! check_os_support $SYSTEM $RELEASE; then
5654
echo -e ">>> Sorry <<< \n\
5755
Currently only Debian testing/jessie backports, Ubuntu, Fedora, Arch,\n\

0 commit comments

Comments
 (0)