Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small problem with the init script #7

Open
Termalator opened this issue May 16, 2024 · 0 comments
Open

small problem with the init script #7

Termalator opened this issue May 16, 2024 · 0 comments

Comments

@Termalator
Copy link

Termalator commented May 16, 2024

The init script starts with a check if docker is installed, but it always returns that it is installed:
You can fix that with double quotes at "$(which docker)" :

`#!/bin/sh
set -f

log()
{
echo "${1}"
}

log "Checking requirements..."
#if [ -n $(which docker) ]; then
if [ -n "$(which docker)" ]; then
log "> docker => installed"
else
log "> docker => not installed"

exit 1
fi
....`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant