Skip to content

Commit ab52b01

Browse files
authored
Fix error on checking dash
$ ./check_dependencies.sh ./check_dependencies.sh: line 83: [: ==: unary operator expected ./check_dependencies.sh: all OK. $
1 parent 6c7c017 commit ab52b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/extras/check_dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if which apt-get >&/dev/null && ! which zypper >/dev/null; then
8080
fi
8181
# Debian systems generally link /bin/sh to dash, which doesn't work
8282
# with some scripts as it doesn't expand x.{1,2}.y to x.1.y x.2.y
83-
if [ $(readlink /bin/sh) == "dash" ]; then
83+
if [ "$(readlink /bin/sh)" == "dash" ]; then
8484
echo "/bin/sh is linked to dash, and currently some of the scripts will not run"
8585
echo "properly. We recommend to run:"
8686
echo " sudo ln -s -f bash /bin/sh"

0 commit comments

Comments
 (0)