Skip to content

Commit d48ce72

Browse files
committed
fix: bin/codeflare has an unquoted shell expression
this can break linux
1 parent 36e6637 commit d48ce72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/codeflare

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ fi
144144

145145
# Linux may not have the prereqs needed to run Electron
146146
if [ ! -f ~/.codeflare ] && [ $(uname) = Linux ]; then
147-
if [ $(grep '^ID_LIKE' /etc/os-release) = "ID_LIKE=debian" ]; then
147+
if [ "$(grep '^ID_LIKE' /etc/os-release)" = "ID_LIKE=debian" ]; then
148148
if [ $(apt -qq list sudo curl libx11-6 libglib2.0-0 libx11-xcb1 libxcb-dri3-0 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxi6 libxtst6 libnss3 libatk1.0-0 libdrm2 libgbm1 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libasound2 | grep installed 2> /dev/null | wc -l) != 20 ]; then
149149
# it's also possible we didn't see these in the list, because we have an out-of-date package list
150150
# so apt update to refresh that, then recheck

0 commit comments

Comments
 (0)