Merge pull request #107 from hyperreal42/hyperreal

Fix bug in conditional expression
This commit is contained in:
Pavel Djundik 2020-07-07 11:05:46 +03:00 committed by GitHub
commit a83aab14b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
#!/bin/sh
if [ "$1" = "thelounge" -a "$(id -u)" = '0' ]; then
if [ "$1" = "thelounge" ] && [ "$(id -u)" = '0' ]; then
find "${THELOUNGE_HOME}" \! -user node -exec chown node '{}' +
exec su node -c "$*"
fi