Skip to content

helper.sh has a wrong path and won't execute #1

Description

@pdromnt

Hi,

Attempting to do the first setup on my K2 Plus, I was met this with:

root@K2Plus-0B0C:~# sh /mnt/UDISK/helper-script/helper.sh
/mnt/UDISK/helper-script/helper.sh: .: line 183: can't open '/mnt/UDISK/helper-script/scripts/scripts/system.sh': No such file or directory

This is caused by two things in the helper.sh file:

Variable SCRIPTS_DIR at the top is declared as SCRIPT_DIR/scripts

And then at the bottom the script attempts to load . "$SCRIPTS_DIR/scripts/system.sh"

Which causes the double /scripts/scripts seen in the error.

Fixing the path at the bottom of the helper.sh file makes the script run normally. I didn't open a PR because I don't know if the repo is contrib friendly.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions