Skip to content

Commit

Permalink
More POSIX compliance fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MentalFS committed Feb 13, 2024
1 parent 4f7cd9b commit d219e80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

if [ "`whoami`"=="boinc" ]; then
if [ "`whoami`" = "boinc" ]; then
# Setup environment
echo "${GUI_RPC_AUTH}" > /etc/boinc-client/gui_rpc_auth.cfg
sed '/^[[:space:]]*$/d' > "/etc/boinc-client/global_prefs_override.xml" <<- END
Expand Down Expand Up @@ -66,7 +66,7 @@ if [ "`whoami`"=="boinc" ]; then
END
fi

if [ "$0"=="/bin/sh" ] && [ -z "$*" ]; then
if [ "$0" = "/bin/sh" ] && [ -z "$*" ]; then
# This makes boinctui appear in Docker Desktop on the Exec tab
boinctui
bash -l && exit || echo -n "\n[$0] `whoami`@`hostname`"
Expand Down

0 comments on commit d219e80

Please sign in to comment.