Skip to content

Commit dc8ecf8

Browse files
authored
Update check_os.sh (#2469)
On my RHEL system, ID is initially set to 'ID_LIKE="RHEL CENTOS FEDORA"', which, when expanded in the if-statement, turns into this: if [ -z ID_LIKE=RHEL CENTOS FEDORA ]; then and causes the error: `souffle/sh/check_os.sh: line 15: [: too many arguments` It is necessary to quote $ID
1 parent 42e432b commit dc8ecf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sh/check_os.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fi
1111
ID=$(grep -G "^ID_LIKE=" $file | tr a-z A-Z)
1212

1313
#Fedora is special and has no ID_LIKE
14-
if [ -z $ID ]; then
14+
if [ -z "$ID" ]; then
1515
ID=$(grep -G "^ID=" $file | tr a-z A-Z)
1616
fi
1717

0 commit comments

Comments
 (0)