Skip to content

Entrypoint error when running app-start.sh #460

Open

Description

@alex-atkins

Describe the bug
Getting the following error when trying to run app-start.sh:

env: can't execute 'bash
': No such file or directory

Looks like it is coming from here:

#!/usr/bin/env bash

To Reproduce
Tag: 0.0.80
Build Dockerfile: make docker-build.sh
note: had to modify because there is a \r line separator that needs to be removed. Check for this in app-start.sh, but doesn't seem to be the issue.
Start app: make docker-start-api
Get error:
': No such file or directory
Note: Also entered container with make docker-start-bash and ran scripts/app-start.sh with same error.

Environment:

  • Build Env: Windows 11, MINGW64 terminal; Also tested on WSL2 Ubuntu with same results

Additional context
I see a similar issue #261 referencing a whitespace, but that is not present here.

Activity

  1. alex-atkins commented on Sep 12, 2024

    @alex-atkins
    Author

    There's some hidden value on the new line below. Removing the empty line and recreating it fixes the problem. There seems to be a line separator or other hidden character in a lot of these .sh files that causes issues in certain environments. Is there a way to remove them all and make sure future commits are clean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions